Changeset 317 in flair-src for trunk/lib


Ignore:
Timestamp:
Apr 15, 2019, 8:59:16 AM (3 years ago)
Author:
Sanahuja Guillaume
Message:

modif alt decollage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/UavStateMachine.cpp

    r313 r317  
    501501    // sans les faire tourner effectivement (en déplaçant à la main le drone)
    502502    uav->GetBldc()->SetEnabled(true);
    503     groundAltitude = currentAltitude;
    504503    altitudeState = AltitudeState_t::TakingOff;
    505504    SignalEvent(Event_t::TakingOff);
     505    ComputeAltitude();//ensure we have good altitude
     506    groundAltitude = currentAltitude;
    506507  }
    507508}
Note: See TracChangeset for help on using the changeset viewer.