|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#5
|
||||
|
||||
|
Re: Save the Gearbox, Save the Game
Interesting.
You could also write this as 1 function by passing the joystick & pwm by reference to your acceleration function. Also, there is nothing wrong with modifying the pwm output variable directly, since the actual pwm output value isn't changed until the Putdata() in Process_Data_From_Master_uP(). What happens if the joystick input is 5, your current pwm output is 8, and it decrements the pwm output by 12? At first glance it looks like your temporary value would go negative. I could be wrong though ![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [wiki]: how to save more than one prog. in the RC | Edourdo | FIRSTwiki | 1 | 04-02-2007 17:29 |
| Save a variable | dawonn | Programming | 7 | 23-04-2005 08:30 |
| SCRRF Save the Regional | Redhead Jokes | Southern California Regional Robotics Forum | 0 | 03-05-2003 14:54 |
| Duel on the Delaware - Save $$$ Now | MOEWidow | Off-Season Events | 11 | 30-04-2003 21:28 |
| Save the rookies!!! Please help us to design a crate... | Eugene | Technical Discussion | 7 | 05-02-2002 20:22 |