forked from Archive/PX4-Autopilot
print scale
This commit is contained in:
parent
763e9af2fb
commit
48785db562
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue