Thread
:
Problem with negitive numbers
View Single Post
#
4
02-02-2008, 16:05
Jared Russell
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
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.
Jared Russell
View Public Profile
Find all posts by Jared Russell
Find CD-Media Photos by Jared Russell
Find CD-Media Papers by Jared Russell