Closed rohanpurohit closed 3 years ago
@ethanjli we tested this PR on the sensor and found these outputs: measurements:
idle (without any external pressure)
- 0when applying pressure on the inlet of the sensor with my finger
- 0.157613
when blowing air into the sensor
- 0.00740
, 0.02
,0.00167836
also regarding stale_data
there is nothing more we need to do.
according to the datasheet When the status bits read “1 0”, “stale” data is indicated,
if you see Device.cpp L31 we need to check the 2 bits S0 and S1
and if we get 1 & 0 (000010 = 2 ,enum value of ABPStatus) we store the status as stale_data
.
In the datasheet, we are advised to ignore command_mode
and diagnostic
status, which we are doing here Sensor.cpp L65
working fine in testing with the sensor.
This PR: