|
Re: I have several question
Since labview hasn't actually been used in the past for programming FIRST robots, I would have to say that there probably isn't any default code out yet. The key word in that sentence is yet. When the season gets closer I am sure some default code will be released.
Also for programming the joysticks, what you do in C is grab the analog input from the joysticks (a number from 0 to 254 with 127 as center) and output it to the wheel motors as a pwm value (also 0 to 254 with 127 as center). Most teams also modify the value a bit before they output it (i.e. a bigger deadzone in the middle, half speed, etc.). You don't actually change the duty cycle, but instead output the pwm value to the victor which takes it and uses it to set its duty cycle.
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major
"All we have to decide is what to do with the time that is given to us." - Gandalf
|