public void Stop() { //TODO isFlying must be updated by CommandManager !! if (FlyState.IsFlying) { CommandManager.Land(); } CommunicationManager.Disconnect(); }
public CommandManager(FlyState flystate, CommunicationManager communicationManager) { FlyState = flystate; _communicationManager = communicationManager; }
public void Start() { CommunicationManager.ConnectAndStartListening(); }
public FlightManager() { FlyState = new FlyState(); CommunicationManager = new CommunicationManager(); CommandManager = new CommandManager(FlyState, CommunicationManager); }