Quote:
|
Originally Posted by foobert
to test for a limit switch closed on pin 1 in the analog/digital section of the rc and then send the damped signal from channel 1 of the radio to a motor connected to motor port 1 on the rc, use
if (rc_dig_in01 == 0)
pwm01 = pwm_in1 / 5 + 100;
the names used are all defined in ifi_aliases.h. the code would probably go into user_routines.c which runs every 18.5 ms.
|
This is exactly what I'm looking for -- thanks! Is there documentation on this anywhere, besides reading the source code comments? How does one know what rc_dig_in01, pwm01 and pwm_in1 are?
Or sample programs, simpler than the VexCode on vexlabs.com? Something like the GearToothTest that Brad has in WPILib, mentioned in the previous post?
Again, thanks very much, I feel like I'm at least getting closer to understanding how to program without EasyC.
Tac