mirror of https://github.com/ArduPilot/ardupilot
AP_RSSI: add enabled method
This commit is contained in:
parent
f633733b3b
commit
ce6fe0e746
|
@ -39,6 +39,9 @@ public:
|
|||
// Initialize the rssi object and prepare it for use
|
||||
void init();
|
||||
|
||||
// return true if rssi reading is enabled
|
||||
bool enabled() const { return rssi_type != RSSI_DISABLED; }
|
||||
|
||||
// Read the receiver RSSI value as a float 0.0f - 1.0f.
|
||||
// 0.0 represents weakest signal, 1.0 represents maximum signal.
|
||||
float read_receiver_rssi();
|
||||
|
|
Loading…
Reference in New Issue