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 }
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
private FlagGrabber() { Robotmap theWholeShabang = Robotmap.GetInstance(); CANController = Robotmap.GETCANController(); CANController.EnablePWMOutput((int)theWholeShabang.GetFlagGrabberServo_ID(), true); //move servo m_currentState = FlagGrabberSTATE.GRABBER_OPEN; }