public OrientationController(MotorController motorController, IOrientationSensor orientationSensor, Dictionary <Axis, IOrientationOffsetHandler> offsetHandlers) { this.orientationSensor = orientationSensor; this.motorController = motorController; this.orientationOffsetHandlers = offsetHandlers; this.assistCount = 0; this.FramesPerAssist = 1; }
public OrientationController(MotorController motorController, IOrientationSensor orientationSensor) : this( motorController, orientationSensor, new Dictionary <Axis, IOrientationOffsetHandler>() { [Axis.Yaw] = new OrientationOffsetHandler(0.0f, 0.1f), [Axis.Pitch] = new OrientationOffsetHandler(5.0f, 0.2f), [Axis.Roll] = new OrientationOffsetHandler(5.0f, 0.2f), }) { }
public OrientationController(MotorController motorController) : this(motorController, new OrientationSensor()) { }