mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
drivers/rc_input: only print vrssi if analog stable
This commit is contained in:
committed by
David Sidrane
parent
15c01a9732
commit
ca685490a9
@@ -405,7 +405,7 @@ void RCInput::Run()
|
||||
// read all available data from the serial RC input UART
|
||||
|
||||
// read all available data from the serial RC input UART
|
||||
int newBytes = ::read(_rcs_fd, &_rcs_buf[0], SBUS_BUFFER_SIZE);
|
||||
int newBytes = ::read(_rcs_fd, &_rcs_buf[0], RC_MAX_BUFFER_SIZE);
|
||||
|
||||
if (newBytes > 0) {
|
||||
_bytes_rx += newBytes;
|
||||
@@ -850,7 +850,11 @@ int RCInput::print_status()
|
||||
}
|
||||
|
||||
#if ADC_RC_RSSI_CHANNEL
|
||||
PX4_INFO("vrssi: %dmV", (int)(_analog_rc_rssi_volt * 1000.0f));
|
||||
|
||||
if (_analog_rc_rssi_stable) {
|
||||
PX4_INFO("vrssi: %dmV", (int)(_analog_rc_rssi_volt * 1000.0f));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
perf_print_counter(_cycle_perf);
|
||||
|
||||
Reference in New Issue
Block a user