Browse Source

GCS: force scalar type in copy_name()

this enables access to compass offsets over MAVLink
mission-4.1.18
Andrew Tridgell 13 years ago
parent
commit
690dc9052a
  1. 2
      ArduCopter/GCS_Mavlink.pde
  2. 2
      ArduPlane/GCS_Mavlink.pde

2
ArduCopter/GCS_Mavlink.pde

@ -1647,7 +1647,7 @@ GCS_MAVLINK::queued_param_send() @@ -1647,7 +1647,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH];
vp->copy_name(param_name, sizeof(param_name));
vp->copy_name(param_name, sizeof(param_name), true);
mavlink_msg_param_value_send(
chan,

2
ArduPlane/GCS_Mavlink.pde

@ -2000,7 +2000,7 @@ GCS_MAVLINK::queued_param_send() @@ -2000,7 +2000,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH];
vp->copy_name(param_name, sizeof(param_name));
vp->copy_name(param_name, sizeof(param_name), true);
mavlink_msg_param_value_send(
chan,

Loading…
Cancel
Save