示例#1
0
        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;
        }
示例#2
0
 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),
 })
 {
 }
示例#3
0
 public OrientationController(MotorController motorController) : this(motorController, new OrientationSensor())
 {
 }