Sorry I'm not being as big of a help as I should be, but I'm in the middle of homework and just answering the questions where the solution is on the top of my head.
Quote:
else (p3_sw_trig == 0);
{
pwm09 = 254;
pwm10 = 254;
}
|
You don't need (p3_sw_trig == 0) after the else, it's already implied. Also, (this may be wrong because I haven't written code like this in 2 years) I think you only need one = when referring to the value of the button, not ==.
Quote:
|
2. We are using spikes this year, and I am not sure how to program them, I'm sure I have to program it somehow but I am at a lost of how to.
|
The PWM cable from the Spike goes into one of the Relay outputs on the robot controller. Then you just map which buttons you want to control which relays and you're good. Not sure if you know how to or not, but send me a PM if you want to know how to have one button control the in/out of a piston and such (like if you want a solenoid to act like a festo).