Example #1
0
    private void Reset(ShipControlCommons shipControl)
    {
        shipControl.Reset(gyroOverride: false, thrusterEnable: true,
                          thrusterCondition: ThrusterCondition);
        Mode = Modes.Idle;

        SaveLastCommand(shipControl, null);
    }
Example #2
0
    private void StartReverse(ShipControlCommons shipControl, EventDriver eventDriver)
    {
        shipControl.Reset(gyroOverride: true);

        var shipBackward = Base6Directions.GetFlippedDirection(shipControl.ShipForward);

        seeker.Init(shipControl,
                    shipUp: shipControl.ShipUp,
                    shipForward: shipBackward);
        cruiser.Init(shipControl,
                     localForward: Base6Directions.Direction.Backward);

        if (Mode != REVERSING)
        {
            Mode = REVERSING;
            eventDriver.Schedule(0, Reverse);
        }
    }
Example #3
0
    private void Start(ShipControlCommons shipControl, EventDriver eventDriver)
    {
        shipControl.Reset(gyroOverride: true);

        if (MINING_ROLL_RPM > 0.0f)
        {
            shipControl.GyroControl.SetAxisVelocityRPM(GyroControl.Roll, MINING_ROLL_RPM);
        }

        seeker.Init(shipControl,
                    shipUp: shipControl.ShipUp,
                    shipForward: shipControl.ShipForward);
        cruiser.Init(shipControl,
                     localForward: Base6Directions.Direction.Forward);

        if (Mode != MINING)
        {
            Mode = MINING;
            eventDriver.Schedule(0, Mine);
        }
    }
Example #4
0
    private void Reset(ShipControlCommons shipControl)
    {
        shipControl.Reset(gyroOverride: false, thrusterEnable: true,
                          thrusterCondition: ThrusterCondition);
        Mode = IDLE;

        SaveLastCommand(shipControl, null);
    }
Example #5
0
    private void Start(ShipControlCommons shipControl, EventDriver eventDriver)
    {
        shipControl.Reset(gyroOverride: true);

        if (MINING_ROLL_RPM > 0.0f) shipControl.GyroControl.SetAxisVelocityRPM(GyroControl.Roll, MINING_ROLL_RPM);

        seeker.Init(shipControl,
                    shipUp: shipControl.ShipUp,
                    shipForward: shipControl.ShipForward);
        cruiser.Init(shipControl,
                     localForward: Base6Directions.Direction.Forward);

        if (Mode != MINING)
        {
            Mode = MINING;
            eventDriver.Schedule(0, Mine);
        }
    }
Example #6
0
    private void StartReverse(ShipControlCommons shipControl, EventDriver eventDriver)
    {
        shipControl.Reset(gyroOverride: true);

        var shipBackward = Base6Directions.GetFlippedDirection(shipControl.ShipForward);
        seeker.Init(shipControl,
                    shipUp: shipControl.ShipUp,
                    shipForward: shipBackward);
        cruiser.Init(shipControl,
                     localForward: Base6Directions.Direction.Backward);

        if (Mode != REVERSING)
        {
            Mode = REVERSING;
            eventDriver.Schedule(0, Reverse);
        }
    }