mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: supply IMU temperature in mavlink extensions
This commit is contained in:
parent
dc4ad26e96
commit
29e65a7294
|
@ -1602,8 +1602,8 @@ void GCS_MAVLINK::send_raw_imu()
|
||||||
mag.x,
|
mag.x,
|
||||||
mag.y,
|
mag.y,
|
||||||
mag.z,
|
mag.z,
|
||||||
0, // for now, only instance 0 is sent
|
0, // we use SCALED_IMU and SCALED_IMU2 for other IMUs
|
||||||
0); // TODO: get the IMU temperature
|
int16_t(ins.get_temperature(0)*100));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GCS_MAVLINK::send_scaled_imu(uint8_t instance, void (*send_fn)(mavlink_channel_t chan, uint32_t time_ms, int16_t xacc, int16_t yacc, int16_t zacc, int16_t xgyro, int16_t ygyro, int16_t zgyro, int16_t xmag, int16_t ymag, int16_t zmag, int16_t temperature))
|
void GCS_MAVLINK::send_scaled_imu(uint8_t instance, void (*send_fn)(mavlink_channel_t chan, uint32_t time_ms, int16_t xacc, int16_t yacc, int16_t zacc, int16_t xgyro, int16_t ygyro, int16_t zgyro, int16_t xmag, int16_t ymag, int16_t zmag, int16_t temperature))
|
||||||
|
@ -1642,7 +1642,7 @@ void GCS_MAVLINK::send_scaled_imu(uint8_t instance, void (*send_fn)(mavlink_chan
|
||||||
mag.x,
|
mag.x,
|
||||||
mag.y,
|
mag.y,
|
||||||
mag.z,
|
mag.z,
|
||||||
0); // TODO: get the IMU temperature
|
int16_t(ins.get_temperature(instance)*100));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue