View Single Post
  #2   Spotlight this post!  
Unread 11-02-2008, 16:03
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: complie error can not fit the section. Section xxxx

If any of your arrays are constant, try putting them in rom.
The C18 User's Guide shows how to do this in section 2.4.3
Basically, you use it like you would use "const", but any pointers to rom data must also be specified as rom pointers.

If you can't stick anything in rom, you can avoid using floats and trig functions by approximating them with integers. You would probably have to approximate the trig functions with lookup tables, which can be placed in rom as well.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award