|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Array Syntax Error
I'm using a lookup table to take joystick values and return a cubic function of them, basically just a drive ramp, but I cannot seem to get my array to compile properly. I have here a drastically reduced version, but one that still returns the same syntax error.
Code:
rom const unsigned char[2] = {0,3};
|
|
#2
|
|||||
|
|||||
|
Re: Array Syntax Error
A small syntax error? You left out the name of the array!
Code:
rom const unsigned char arrname[2] = {0,3};
|
|
#3
|
|||||
|
|||||
|
Re: Array Syntax Error
Code:
rom const unsigned char x[2] = {0,3};
|
|
#4
|
|||||
|
|||||
|
Re: Array Syntax Error
Please give me a moment while I proceed to beat my head against the wall...
Thanks! I knew I was missing something!!! |
|
#5
|
||||
|
||||
|
Re: Array Syntax Error
It's ok.
Half an hour... Over a dozen code downloads... Two master resets... Then I remembered to plug the PWM cables in ![]() Oh and yeah, this beauty: Code:
if(x > 0)
{x = 0;}
|
|
#6
|
|||||
|
|||||
|
Re: Array Syntax Error
Quote:
He couldn't get a potentiometer value to display with the new 2006 code, so he put the old 2005 code in, only to discover that it still didn't work. A little while later a student walks in and notices that the OI was unplugged the whole time! ![]() Then there's always the problem of "why doesn't the camera work!?"... Oh, wait, the backup battery came loose again! Maybe a thread should be started with "Top 100 Stupid Programming Mistakes"? ![]() |
|
#7
|
|||
|
|||
|
Re: Array Syntax Error
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Array Syntax Error
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C18 v2.4 -- Syntax error where there is no syntax error | Joel J | Programming | 7 | 12-01-2007 17:27 |
| Syntax Error! | Denz | Programming | 15 | 04-02-2006 23:57 |
| stupid Array error: Error [1300] stack frame too l | Validius | Programming | 7 | 27-01-2006 10:53 |
| Syntax Error: externs, structs, and macros | Astronouth7303 | Programming | 3 | 16-02-2005 15:39 |
| syntax error using enum{} | gnormhurst | Programming | 8 | 07-02-2005 14:25 |