|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Where to insert code?
Ok new FIRST programmer here.....where are we allowed to insert code. For example, we want to change the sensitivity of our joy stick drive by using an array (we think). Does this go in user_routines.c ? and if so, does it matter where?
|
|
#2
|
|||||
|
|||||
|
Re: Where to insert code?
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Where to insert code?
Yeah, what he said. You are going to want to study it some because the default code uses somthing called limit mix at least for the one joystick drive. I forget what it does but I think it had something to do with making sure that your pwm values did not exceed 255 or go below 0. Or something.
|
|
#4
|
||||
|
||||
|
Re: Where to insert code?
Quote:
Code:
/*Add your code here.*/ Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Re: Where to insert code?
Thanks everyone! Yeah I put in an array table but thinking about using a log formula instead. I keep getting an error when building -
MPLINK 3.90 Linker Error - section ' .idata_user_routines.o' can not fit the section. Section ' .idata_user_routines.o' length=0x0000020c Errors :1 |
|
#6
|
|||||
|
|||||
|
Re: Where to insert code?
Quote:
rom const char myArray[2] = {1, 2}; the problem is you don't have enough memory in RAM for whatever array you have. note: ya can't change it if its rom and another: go to http://www.chiefdelphi.com/forums/sh...ad.php?t=33359 for more info |
|
#7
|
|||||
|
|||||
|
Re: Where to insert code?
Quote:
Depends on how complex the math is I guess, but using ROM to store your loo up table yields pretty fast results. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| Kevin Watson's Kick-off Demo Code! | Mr. Lim | Programming | 27 | 22-01-2005 03:38 |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| A Centralized Code Dump? | colt527 | Programming | 29 | 01-01-2005 16:07 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |