예제 #1
0
        private void CloseGrabber()
        {
            Robotmap map        = Robotmap.GetInstance();
            float    pulses     = LinearInterpolation.Calculate(CLOSEGRABBER, -1.0f, minPWMSignalRange, 1.0f, maxPWMSignalRange);
            float    percentOut = pulses / pwmOutput;

            CANController.SetPWMOutput(map.GetFlagGrabberServo_ID(), percentOut); //move servo
        }
예제 #2
0
        private void OpenGrabber()
        {
            Robotmap map        = Robotmap.GetInstance();
            float    pulses     = LinearInterpolation.Calculate(OPENGRABBER, -1.0f, minPWMSignalRange, 1.0f, maxPWMSignalRange);
            float    percentOut = pulses / pwmOutput;

            CANController.SetPWMOutput(map.GetFlagGrabberServo_ID(), pulses); //move servo
        } //FLAGSURVO LOOK LOOK LOOOK LOOK LOOK LOOK LOOK DO THIS FIX IT HE SHOWED YOU YOU GOTTA DO IT LLLLLLOOOOOOOOOOOK
예제 #3
0
        private FlagGrabber()

        {
            Robotmap theWholeShabang = Robotmap.GetInstance();

            CANController = Robotmap.GETCANController();
            CANController.EnablePWMOutput((int)theWholeShabang.GetFlagGrabberServo_ID(), true); //move servo

            m_currentState = FlagGrabberSTATE.GRABBER_OPEN;
        }