mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Sub: Remove one layer of abstraction for ServoRelayEvents.update_events
call
This commit is contained in:
parent
cb38c66479
commit
5b4ec88f11
ArduSub
@ -362,7 +362,7 @@ void Sub::three_hz_loop()
|
|||||||
fence_check();
|
fence_check();
|
||||||
#endif // AC_FENCE_ENABLED
|
#endif // AC_FENCE_ENABLED
|
||||||
|
|
||||||
update_events();
|
ServoRelayEvents.update_events();
|
||||||
}
|
}
|
||||||
|
|
||||||
// one_hz_loop - runs at 1Hz
|
// one_hz_loop - runs at 1Hz
|
||||||
|
@ -635,7 +635,6 @@ private:
|
|||||||
void failsafe_terrain_check();
|
void failsafe_terrain_check();
|
||||||
void failsafe_terrain_set_status(bool data_ok);
|
void failsafe_terrain_set_status(bool data_ok);
|
||||||
void failsafe_terrain_on_event();
|
void failsafe_terrain_on_event();
|
||||||
void update_events();
|
|
||||||
void failsafe_enable();
|
void failsafe_enable();
|
||||||
void failsafe_disable();
|
void failsafe_disable();
|
||||||
void fence_check();
|
void fence_check();
|
||||||
|
@ -294,9 +294,3 @@ bool Sub::should_disarm_on_failsafe()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sub::update_events()
|
|
||||||
{
|
|
||||||
ServoRelayEvents.update_events();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user