public CommunicationController(NanoDrone drone) { this.drone = drone; webserver = new Webserver.Webserver(666); new MotorRoutes(webserver, this.drone); new OrientationRoutes(webserver, this.drone); new FlightRoutes(webserver, this.drone); }
protected override void OnLaunched(LaunchActivatedEventArgs e) { try { drone = new Controllers.NanoDrone(); } catch (Exception exception) { LogException(exception); } }
public OrientationController(NanoDrone drone) { this.drone = drone; this.running = false; sensor = new OrientationSensor(); this.SetOwnOrientation(0, 0, 0); this.SetTargetOrientation(0, 0, 0); Start(); }
public MotorController(NanoDrone drone) { this.drone = drone; this.throttle = 0; this.pitchPower = 0; this.yawPower = 0; this.rollPower = 0; InitSensors(); InitMotors(); Throttle(0); }