Browse Source

AP_Baro: fixed comment to clarify that every-other call updates temperature or pressure

mission-4.1.18
rmackay9 13 years ago
parent
commit
5c9dc00ae2
  1. 2
      libraries/AP_Baro/AP_Baro_BMP085.cpp

2
libraries/AP_Baro/AP_Baro_BMP085.cpp

@ -102,7 +102,7 @@ bool AP_Baro_BMP085::init( AP_PeriodicProcess * scheduler )
} }
// Read the sensor. This is a state machine // Read the sensor. This is a state machine
// We read one time Temperature (state=1) and then 4 times Pressure (states 2-5) // We read Temperature (state=1) and then Pressure (state!=1) on alternate calls
uint8_t AP_Baro_BMP085::read() uint8_t AP_Baro_BMP085::read()
{ {
uint8_t result = 0; uint8_t result = 0;

Loading…
Cancel
Save