GCS_MAVLink: rename MSG_RAW_IMU2 and MSG_RAW_IMU3 to reflect what they send

This commit is contained in:
Peter Barker 2018-12-04 16:54:37 +11:00 committed by Peter Barker
parent a40937337d
commit d5322633ed
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ enum ap_message : uint8_t {
MSG_SERVO_OUTPUT_RAW,
MSG_RADIO_IN,
MSG_RAW_IMU1,
MSG_RAW_IMU2,
MSG_RAW_IMU3,
MSG_SCALED_PRESSURE,
MSG_SENSOR_OFFSETS,
MSG_GPS_RAW,
MSG_GPS_RTK,
MSG_GPS2_RAW,

View File

@ -3234,12 +3234,12 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
send_raw_imu();
break;
case MSG_RAW_IMU2:
case MSG_SCALED_PRESSURE:
CHECK_PAYLOAD_SIZE(SCALED_PRESSURE);
send_scaled_pressure();
break;
case MSG_RAW_IMU3:
case MSG_SENSOR_OFFSETS:
CHECK_PAYLOAD_SIZE(SENSOR_OFFSETS);
send_sensor_offsets();
break;