GPS only warn if jamming state is critical

This commit is contained in:
alexklimaj 2023-03-17 13:30:45 -06:00 committed by Daniel Agar
parent 0afda910d1
commit e2de62e38b
1 changed files with 1 additions and 1 deletions

View File

@ -1208,7 +1208,7 @@ GPS::publish()
if (_report_gps_pos.jamming_state != _jamming_state) {
if (_report_gps_pos.jamming_state > sensor_gps_s::JAMMING_STATE_OK) {
if (_report_gps_pos.jamming_state > sensor_gps_s::JAMMING_STATE_WARNING) {
PX4_WARN("GPS jamming detected! (state: %d) (indicator: %d)", _report_gps_pos.jamming_state,
(uint8_t)_report_gps_pos.jamming_indicator);
}