|
|
|
@ -4,6 +4,22 @@
@@ -4,6 +4,22 @@
|
|
|
|
|
|
|
|
|
|
#include <AP_RangeFinder/RangeFinder_Backend.h> |
|
|
|
|
|
|
|
|
|
bool GCS_Rover::simple_input_active() const |
|
|
|
|
{ |
|
|
|
|
if (rover.control_mode != &rover.mode_simple) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return (rover.g2.simple_type == ModeSimple::Simple_InitialHeading); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool GCS_Rover::supersimple_input_active() const |
|
|
|
|
{ |
|
|
|
|
if (rover.control_mode != &rover.mode_simple) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return (rover.g2.simple_type == ModeSimple::Simple_CardinalDirections); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// update error mask of sensors and subsystems. The mask
|
|
|
|
|
// uses the MAV_SYS_STATUS_* values from mavlink. If a bit is set
|
|
|
|
|
// then it indicates that the sensor or subsystem is present but
|
|
|
|
|