mirror of https://github.com/ArduPilot/ardupilot
AP_RPM: fixed #ifdef HAL_WITH_ESC_TELEM to #if HAL_WITH_ESC_TELEM
This commit is contained in:
parent
cdc874c366
commit
28905a1e67
|
@ -32,7 +32,7 @@ AP_RPM_ESC_Telem::AP_RPM_ESC_Telem(AP_RPM &_ap_rpm, uint8_t _instance, AP_RPM::R
|
|||
|
||||
void AP_RPM_ESC_Telem::update(void)
|
||||
{
|
||||
#ifdef HAL_WITH_ESC_TELEM
|
||||
#if HAL_WITH_ESC_TELEM
|
||||
AP_ESC_Telem &esc_telem = AP::esc_telem();
|
||||
float esc_rpm = esc_telem.get_average_motor_rpm(ap_rpm._esc_mask[state.instance]);
|
||||
state.rate_rpm = esc_rpm * ap_rpm._scaling[state.instance];
|
||||
|
|
Loading…
Reference in New Issue