|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
|||||
|
|||||
|
Re: Robot not doing what we need it to, and printfs aren't working
Your print statements have mixed types where you attempt to print unsigned char (e.g., pwm01) and double (wFL) types as ints (%d). Typecast the arguments (int).
Statements such as: pwm01 = (int)wFL + 127; start with a double, typecast it to int, then assign it to unsigned char as opposed to keeping your calculation as double then typecasting the result to unsigned char. Are you doing that to speed things up? Just curious, not a problem. Last edited by Mark McLeod : 18-09-2008 at 08:37. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need some help with arm not working... | neilcooper | Programming | 3 | 15-03-2008 06:16 |
| If the computer and internet was not invented, what would you be doing right now? | Bharat Nain | Chit-Chat | 55 | 03-06-2006 11:55 |
| my comp is not working right and i need help | Timmyd | Chit-Chat | 17 | 07-11-2005 23:39 |
| Camera not working when connected to robot | MarkVH | Programming | 5 | 14-02-2005 15:40 |
| Robot Controller Not Working !?!?! | Team1425 | Electrical | 3 | 24-01-2004 20:52 |