Rover: arming checks for GPS use requires_position and velocity
This commit is contained in:
parent
9cba1e2907
commit
2748d4d0fe
@ -61,7 +61,7 @@ bool AP_Arming_Rover::pre_arm_rc_checks(const bool display_failure)
|
|||||||
// performs pre_arm gps related checks and returns true if passed
|
// performs pre_arm gps related checks and returns true if passed
|
||||||
bool AP_Arming_Rover::gps_checks(bool display_failure)
|
bool AP_Arming_Rover::gps_checks(bool display_failure)
|
||||||
{
|
{
|
||||||
if (!rover.control_mode->requires_gps()) {
|
if (!rover.control_mode->requires_position() && !rover.control_mode->requires_velocity()) {
|
||||||
// we don't care!
|
// we don't care!
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user