|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||||
|
|||||
|
Re: Problem with negitive numbers
What type is "currentOutput[motor]"?
If currentOutput[motor] is, say, 0, and you try adding -5 to it, you will get overflow unless currentOutput[motor] is a signed type. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Lofting | cooker52 | Inventor | 14 | 04-11-2007 15:00 |
| Problem With Footsteps | Popper99 | 3D Animation and Competition | 1 | 04-11-2007 09:34 |
| Problem with RoboEmu2? | Calvin | Programming | 1 | 12-02-2005 11:27 |
| Problem with communicating with STAMP through serial port | Skabana159 | Technical Discussion | 2 | 06-02-2003 21:10 |
| Problem with OI / RC | Jay Lundy | Technical Discussion | 2 | 29-03-2002 23:07 |