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


Ignore:
Timestamp:
Apr 27, 2017, 5:37:41 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

résolution https://devel.hds.utc.fr/software/flair/ticket/18

File:
1 edited

Legend:

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

    r167 r176  
    720720  }
    721721  altitudeMode = newAltitudeMode;
    722   GotoAltitude(desiredTakeoffAltitude->Value());
     722  //avoid starting trajectory at take off (it will be started when altitudeState==AltitudeState_t::Stabilized)
     723  if(altitudeState!=AltitudeState_t::Stopped) GotoAltitude(desiredTakeoffAltitude->Value());
    723724
    724725  return true;
Note: See TracChangeset for help on using the changeset viewer.