mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
BaroGlitch: init members to resolve compiler warning
This commit is contained in:
parent
7a2288523e
commit
c68d4fdfcb
@ -42,9 +42,16 @@ const AP_Param::GroupInfo Baro_Glitch::var_info[] PROGMEM = {
|
|||||||
|
|
||||||
// constuctor
|
// constuctor
|
||||||
Baro_Glitch::Baro_Glitch(AP_Baro &baro) :
|
Baro_Glitch::Baro_Glitch(AP_Baro &baro) :
|
||||||
_baro(baro)
|
_baro(baro),
|
||||||
|
_last_good_update(0),
|
||||||
|
_last_good_alt(0),
|
||||||
|
_last_good_vel(0.0f)
|
||||||
{
|
{
|
||||||
AP_Param::setup_object_defaults(this, var_info);
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
|
|
||||||
|
// initialise flags
|
||||||
|
_flags.initialised = 0;
|
||||||
|
_flags.glitching = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check_alt - checks latest baro altitude against last know alt, velocity and maximum acceleration and updates glitching flag
|
// check_alt - checks latest baro altitude against last know alt, velocity and maximum acceleration and updates glitching flag
|
||||||
|
Loading…
Reference in New Issue
Block a user