AP_Airspeed: Rearrange state to save memory

Saves 8 bytes per airspeed sensor (2 backends for 8 total), and removes
the unneeded width specifier, which has no impact on used memory, and
saves us 88 bytes of flash because we don't have to do work to shift the
bits around.
This commit is contained in:
Michael du Breuil 2020-05-05 22:07:59 -07:00 committed by Andrew Tridgell
parent 64e300a00c
commit ceb0a9c827

View File

@ -193,17 +193,17 @@ private:
float last_pressure;
float filtered_pressure;
float corrected_pressure;
bool healthy:1;
bool hil_set:1;
float hil_pressure;
uint32_t last_update_ms;
bool use_zero_offset;
bool healthy;
bool hil_set;
// state of runtime calibration
struct {
uint32_t start_ms;
uint16_t count;
float sum;
uint16_t count;
uint16_t read_count;
} cal;