As the title I am having issues setting up the compressor to run on the robot. I have compressor fully wired up with the spike relay with the
PWM going to the
relays on the Digital Sidecar, then I have the pressure switch hooked up to the
signal and
ground wires of PWM coming from the
GPIO on the Digital Sidecard but I can't get the compressor to turn on when I turn on the robot.
Code:
airCompressor = new airCompressor(1,1);
airCompressor->Start();
I have the object creation in BuiltinDefaultCode and the start call in RobotInit
I have checked the cables with a multimeter and they're all working, I checked the pressure switch with a multimeter it is not broke as well, I tested the compressor and it is not seized.
It would be greatly appreciated if someone could tell me where I went wrong with setting up the compressor to run on board the robot.