GCS_MAVLink: add warning about providing full-sized buffer to send_parameter_value

This commit is contained in:
Peter Barker 2023-02-01 18:25:14 +11:00 committed by Peter Barker
parent 42b784b581
commit 263216669d

View File

@ -232,6 +232,9 @@ public:
virtual uint8_t sysid_my_gcs() const = 0;
virtual bool sysid_enforce() const { return false; }
// NOTE: param_name here must point to a 16+1 byte buffer - so do
// NOT try to pass in a static-char-* unless it does have that
// length!
void send_parameter_value(const char *param_name,
ap_var_type param_type,
float param_value);