Browse Source

GCS_MAVLink: stop converting compass cal floats to ints before saving

master
Peter Barker 6 years ago committed by Tom Pittenger
parent
commit
5c4983ffcd
  1. 2
      libraries/GCS_MAVLink/GCS_Common.cpp

2
libraries/GCS_MAVLink/GCS_Common.cpp

@ -3315,7 +3315,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_preflight_set_sensor_offsets(const mavlin @@ -3315,7 +3315,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_preflight_set_sensor_offsets(const mavlin
if (compassNumber == (uint8_t) -1) {
return MAV_RESULT_FAILED;
}
compass.set_and_save_offsets(compassNumber, packet.param2, packet.param3, packet.param4);
compass.set_and_save_offsets(compassNumber, Vector3f(packet.param2, packet.param3, packet.param4));
return MAV_RESULT_ACCEPTED;
}

Loading…
Cancel
Save