|
Re: Error - section 'UTIL_LIB' can not fit the section. Section 'UTIL_LIB' length=0x0
Quote:
|
Originally Posted by Fat Alex
Well, in the spirit of explanation, the reason I was wanting so much memory is because, my teams robot turns well, so well that it doesn't go strait. To fix this problem I decided a nice lookup table would be advantageous, so I am writing a program to test the speed of the wheels at all 254 speeds (508 int values to store, though maybe that is to far i could do every other and scale the counts into a char, but that would lose data... anyway that is still a good deal of values(char[254]). then calculate what amount of power to send the wheels for a given joystick value and then finally storing that in eeprom or outputting it to the terminal window so the info could be stored as ROM.
So, I only want extra space for calibrating, the actually program will be much more simple.
|
I recently did the same thing. However, I went about it a different way. I printf outputted data to the TTL RS232 port and captured it in a PC. After the test, the data file was imported into Excel, massaged and I generated a lookup table which was included into the next MPlab project build.
Permanent changes to my code were a few lines of code which are now commented out (pending the next time I need this test done).
Free your mind and other portions of your anatomy will follow...
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|