Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   trentonDrive.c: our joystick/wheel drive code (http://www.chiefdelphi.com/forums/showthread.php?t=27373)

Mark McLeod 03-02-2005 13:33

Re: trentonDrive.c: our joystick/wheel drive code
 
Quote:

Originally Posted by Anton
Each time I compile the function it says
C:\FrcCode2005v2.2\trentonDrive.c:164:Error [1105] symbol 'pwm10' has not been defined
C:\FrcCode2005v2.2\trentonDrive.c:164:Error [1101] lvalue required

do you know what could be the problem?

Probably missing a required compiler flag in MPLAB for the FRC. The code isn't setup for the EDU controller.

Project -> Build Options... -> Project
MPLAB C18 tab
By "Macro Definitions" click on "Add..."
type _FRC_BOARD in the popup, then OK
Build everything again.

Anton 03-02-2005 14:40

Re: trentonDrive.c: our joystick/wheel drive code
 
Quote:

Originally Posted by Mark McLeod
Probably missing a required compiler flag in MPLAB for the FRC. The code isn't setup for the EDU controller.

Project -> Build Options... -> Project
MPLAB C18 tab
By "Macro Definitions" click on "Add..."
type _FRC_BOARD in the popup, then OK
Build everything again.

I already fixed the problem by including everyhing included in user_routines.c to your file. It probably is just a waste of resources, but I think that i'll find by trial&error the neccesary files to be included.
thanks anyway.


All times are GMT -5. The time now is 11:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi