|
General Q's
Can I hook up PWM cables to digital output to a victor?
Is relayx_fwd mean that the value will be 1 (On)?
Likewise is relayx_rev make the value if the button on a stick is pushed =-1(Inverted On)?
What is the point of digital input?
Is there any way to fry the bot using programming?
If you want to know what I am doing, I have 2 joysticks. I want the left trigger to make the motor go down, and I want the right trigger to make the motor go up. In the program, I made all digital relays set to output(Default is only #17(which is crazy in my opinion)) and said p1_sw_trigger=relay1_rev and p2_sw_trigger=relay1_fwd(Or something along those lines). I also added in some clever code to make the motor continue what it is doing if the opposite trigger is already down. I haven't hooked up the motor yet, but I am going to hook the pwm cable from Digital I/O 1 to my victor 884. Then go from the victor to the motor. Will my plan work? The robot is shipped, so I can't physically test it for a month.
I ask if you can programically fry a bot, because I have been considering doing some pretty crazy stuff in the code. However, it appears that there is a load of build in safeguards to prevent the self-destruction of the robot. That doesn't say anything about the morons who want to 'physically' hook up five 12-volt batteries to a motor.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
|