|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Beacon Code on Full Size RC?
Quote:
1) Drop a copy of beacon.c and beacon.h into a directory containing a fresh copy of the default EDU-RC code. 2) Use the project wizard to create a new project with the default code and beacon files. 3) Edit user_routines.c adding #include <beacon.h> in the #include area near the top and then a call to to Initialize_Beacon() in User_Initialization(). 4) Change the call to Setup_PWM_Output_Type() to look like this: Setup_PWM_Output_Type(USER_CCP,USER_CCP,IFI_PWM,IF I_PWM); 5) You may also need to comment out the call to Generate_Pwms() in Process_Data_From_Master_uP(). 6) While you're there, comment out the Default_Routine() and printf() calls in Process_Data_From_Master_uP(). 7) Build and load the new .hex file. 8) Beacon type-0 should be on PWM13 and type-1 should be on PWM14. Let us know if it works. BTW, the tracking code works just fine on the EDU-RC. Here's a copy that'll get you started. -Kevin |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| InfraRed autonomous code ... | mtrawls | Programming | 1 | 11-01-2004 00:25 |
| Autonomous code | PBoss | Programming | 7 | 14-01-2003 15:29 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |
| Patent source code? | Kyle Fenton | Chit-Chat | 3 | 20-10-2001 17:53 |