mirror of https://github.com/ArduPilot/ardupilot
AP_Frsky_Telem: rename HAL_INS_ENABLED to AP_INERTIALSENSOR_ENABLED
This commit is contained in:
parent
c0d9201740
commit
0d64dc5a14
|
@ -567,7 +567,7 @@ uint32_t AP_Frsky_SPort_Passthrough::calc_ap_status(void)
|
|||
{
|
||||
// IMU temperature: offset -19, 0 means temp =< 19°, 63 means temp => 82°
|
||||
uint8_t imu_temp = 0;
|
||||
#if HAL_INS_ENABLED
|
||||
#if AP_INERTIALSENSOR_ENABLED
|
||||
imu_temp = (uint8_t) roundf(constrain_float(AP::ins().get_temperature(0), AP_IMU_TEMP_MIN, AP_IMU_TEMP_MAX) - AP_IMU_TEMP_MIN);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue