mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
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
|
// Initialize the rssi object and prepare it for use
|
||||||
void init();
|
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.
|
// Read the receiver RSSI value as a float 0.0f - 1.0f.
|
||||||
// 0.0 represents weakest signal, 1.0 represents maximum signal.
|
// 0.0 represents weakest signal, 1.0 represents maximum signal.
|
||||||
float read_receiver_rssi();
|
float read_receiver_rssi();
|
||||||
|
Loading…
Reference in New Issue
Block a user