AP_RSSI: add enabled method

This commit is contained in:
Randy Mackay 2015-09-16 16:24:47 +09:00
parent f633733b3b
commit ce6fe0e746
1 changed files with 3 additions and 0 deletions

View File

@ -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();