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:
parent
64e300a00c
commit
ceb0a9c827
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user