コード例 #1
0
ファイル: Car.cs プロジェクト: HoganRichardson/NXTremote
        public Car(Bluetooth bt, Motor driveMotor, Motor steerMotor,
                   bool drive_reverse = false, bool steer_reverse = false)
        {
            BT         = bt;
            DriveMotor = driveMotor;
            SteerMotor = steerMotor;

            DriveOutput = new SetOutputState(DriveMotor.GetHashCode(), 0,
                                             SetOutputState.ModeType.MotorOn, SetOutputState.RegulationType.MotorSpeed, 0,
                                             SetOutputState.RunStateType.Running, 0, drive_reverse);

            SteerOutput = new SetOutputState(SteerMotor.GetHashCode(), 0,
                                             SetOutputState.ModeType.MotorOn, SetOutputState.RegulationType.MotorSpeed, 0,
                                             SetOutputState.RunStateType.Running, 0, steer_reverse);
        }