|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
My team has run into a little difficulty....
Whenever we try to use floats, longs, doubles, or anything else besides integers...our robot does all kinds of weird things it shouldn't be doing... As long as we use int's, our coding runs the way it should...however, it would be very nice if we didn't have to round everything of to an integer! HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ![]() |
|
#2
|
||||
|
||||
|
Re: Number Variables Gone Bezerk!
Please read this thread.
|
|
#3
|
||||
|
||||
|
Re: Number Variables Gone Bezerk!
Quote:
In reply, to the first post, It may be possible that you are running out of memory because of using too many floats, longs, doubles, etc. Can you use chars? If not then something is really wrong, because your pwms are chars. |
|
#4
|
||||
|
||||
|
Re: Number Variables Gone Bezerk!
When we tried to use ints (to print the joystick's x and y axis values onscreen) we had nothing but the default code and those few lines! ---Later though I realized that we were putting "%i" in the printf statements, only "%d"s are supported!
The other times we've had problems so far also have been with the default code and only a few extra variables... Note: We're using the team robot from last year (2004) to test our coding on...could some kind of conflict (between 05 MPLAB+default code and the 2004 robot) be causing the trouble? The idea of doing trig functions and accurate autonomous navigation with only ints and chars is not very nice... ![]() |
|
#5
|
|||||
|
|||||
|
Re: Number Variables Gone Bezerk!
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with Variables ? | David Bryan | Programming | 5 | 23-02-2004 07:42 |
| Help On Coding 2K1 Controller | GregTheGreat | Programming | 9 | 05-12-2003 18:35 |
| team number... | Ken Leung | Chit-Chat | 39 | 28-09-2003 14:36 |
| VB Program to monitor robot variables | DanL | Programming | 7 | 15-02-2002 22:35 |
| WASH scouting fields | Mike Soukup | Scouting | 0 | 04-02-2002 02:39 |