public void SetOutput(int outputNumber, bool value) { m_outputs = (m_outputs & ~(1 << (outputNumber - 1))) | (value ? 1 : 0 << (outputNumber - 1)); HALDriverStation.HAL_SetJoystickOutputs(Port, m_outputs, m_leftRumble, m_rightRumble); }
public void SetRumble(RumbleType type, double value) { if (value < 0) { value = 0; } else if (value > 1) { value = 1; } if (type == RumbleType.LeftRumble) { m_leftRumble = (ushort)(value * 65535); } else { m_rightRumble = (ushort)(value * 65535); } HALDriverStation.HAL_SetJoystickOutputs(Port, m_outputs, m_leftRumble, m_rightRumble); }
public void SetOutputs(int value) { m_outputs = value; HALDriverStation.HAL_SetJoystickOutputs(Port, m_outputs, m_leftRumble, m_rightRumble); }