|
Tweaking constants: any good way?
This year I was told that we would need some code to ramp up the speed, so if the driver jams the sticks forward or backward, the robot wont flip (as we are really top heavy). The actual code was easy, but what made it take forever was the tweaking.
Every time I would want to make a change, I would have to first change the #define statement, compile the code, then download the code.
Am I just ignorant, and there is an easy way to tweak constants in the code without having to compile/download it each time? (I know you cant change values of #define statements with out re-compiling... but you know what I mean).
The best thing I could think of was change the #define statements to variables, then assigning a button to increase/decrease them, but I never got around to coding it.
__________________
Help Microsoft stop piracy. Use Linux!
I have three gmail invitations, message me if you want one
|