print scale

This commit is contained in:
bresch 2023-11-02 14:14:01 +01:00
parent 763e9af2fb
commit 48785db562
2 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,7 @@ void PAW3902::print_status()
perf_print_counter(_mode_change_bright_perf);
perf_print_counter(_mode_change_low_light_perf);
perf_print_counter(_mode_change_super_low_light_perf);
perf_print_counter(_no_motion_interrupt_perf);
PX4_INFO_RAW("Resolution %" PRIu8 "\n", _resolution);
}
int PAW3902::probe()
@ -496,6 +496,8 @@ void PAW3902::RunImpl()
Reset();
}
}
_resolution = RegisterRead(Register::Resolution);
}
break;

View File

@ -122,6 +122,8 @@ private:
uint8_t _quality_prev{0};
uint8_t _raw_data_sum_prev{0};
uint8_t _resolution{0};
int _failure_count{0};
int _discard_reading{0};