GCS: force scalar type in copy_name()

this enables access to compass offsets over MAVLink
This commit is contained in:
Andrew Tridgell 2012-02-24 17:23:08 +11:00
parent 2e9105c68a
commit 690dc9052a
2 changed files with 2 additions and 2 deletions

View File

@ -1647,7 +1647,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type); value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH]; 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( mavlink_msg_param_value_send(
chan, chan,

View File

@ -2000,7 +2000,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type); value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH]; 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( mavlink_msg_param_value_send(
chan, chan,