|
|
|
@ -26,19 +26,29 @@ public:
@@ -26,19 +26,29 @@ public:
|
|
|
|
|
void calibrate(void (*callback)(unsigned long t)); |
|
|
|
|
|
|
|
|
|
// return the current airspeed in m/s
|
|
|
|
|
float get_airspeed(void) { return _airspeed; } |
|
|
|
|
float get_airspeed(void) { |
|
|
|
|
return _airspeed; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// return the current airspeed in cm/s
|
|
|
|
|
float get_airspeed_cm(void) { return _airspeed*100; } |
|
|
|
|
float get_airspeed_cm(void) { |
|
|
|
|
return _airspeed*100; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// return true if airspeed is enabled, and airspeed use is set
|
|
|
|
|
bool use(void) { return _enable && _use && _offset != 0; } |
|
|
|
|
bool use(void) { |
|
|
|
|
return _enable && _use && _offset != 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// return true if airspeed is enabled
|
|
|
|
|
bool enabled(void) { return _enable; } |
|
|
|
|
bool enabled(void) { |
|
|
|
|
return _enable; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// used by HIL to set the airspeed
|
|
|
|
|
void set_HIL(float airspeed) { _airspeed = airspeed; } |
|
|
|
|
void set_HIL(float airspeed) { |
|
|
|
|
_airspeed = airspeed; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
|
|
|
|
|
|