Changeset 164 in flair-src for trunk/lib/FlairMeta/src


Ignore:
Timestamp:
Mar 6, 2017, 10:12:13 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

batterie

File:
1 edited

Legend:

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

    r157 r164  
    460460  flagZTrajectoryFinished = false;
    461461
    462   if((altitudeState==AltitudeState_t::Stopped) && safeToFly && uav->isReadyToFly()) {// && GetBatteryMonitor()->IsBatteryLow()==false)
     462  if((altitudeState==AltitudeState_t::Stopped) && safeToFly && uav->isReadyToFly()  && uav->GetBatteryMonitor()->IsBatteryLow()==false) {
    463463    //The uav always takes off in fail safe mode
     464    flagBatteryLow=false;
    464465    EnterFailSafeMode();
    465466    joy->SetLedOFF(4);//DualShock3::led4
Note: See TracChangeset for help on using the changeset viewer.