|
I don't think that array should be taking up ALL of your RAM...you have 1800 bytes. I'm not entirely sure how much RAM the other processes take up, but I think that 1800 bytes is solely program RAM so you shouldn't be running into RAM issues...
Float is the only variable that allows for decimals, but I'm not sure why you'd need decimals if you're doing auton code. There's no way you can get it THAT precise because alot of factors like battery life and objects on the floor will affect the movement of the robot. You might be able to calculate it down to 13.3432423432432432434 feet to get to the ramp, but really the robot may not get there in that amount or it might go too far with that. Alot of assumptions have to be made when making this program and I'm not sure if a float would allow you anymore control than an int or unsigned int.
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
|