mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
asp5033: fix K value
As QioTek told me via email. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -222,7 +222,7 @@ int ASP5033::collect()
|
||||
|
||||
// k is a shift based on the pressure range of the device. See
|
||||
// table in the datasheet
|
||||
constexpr uint8_t k = 8;
|
||||
constexpr uint8_t k = 7;
|
||||
constexpr float press_scale = 1.0f / (1U << k); //= 1.0f / (1U << k);
|
||||
press_sum += press * press_scale;
|
||||
press_count++;
|
||||
|
||||
Reference in New Issue
Block a user