mirror of https://github.com/ArduPilot/ardupilot
Rover: use fence singleton in afs check
This commit is contained in:
parent
3400d5e4a5
commit
7456d8149f
|
@ -149,6 +149,6 @@ void Rover::handle_battery_failsafe(const char* type_str, const int8_t action)
|
||||||
void Rover::afs_fs_check(void)
|
void Rover::afs_fs_check(void)
|
||||||
{
|
{
|
||||||
// perform AFS failsafe checks
|
// perform AFS failsafe checks
|
||||||
g2.afs.check(fence.get_breaches() != 0, failsafe.last_valid_rc_ms);
|
g2.afs.check(failsafe.last_valid_rc_ms);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue