View Single Post
  #4   Spotlight this post!  
Unread 23-12-2005, 21:22
davelu davelu is offline
Registered User
AKA: fffff
#0123 (fff)
Team Role: Programmer
 
Join Date: Jan 2005
Location: ffff
Posts: 69
davelu is infamous around these partsdavelu is infamous around these parts
Re: Vex Programming help!

Yeah it works now. I installed c18 2.40 with MPLAB 7.0

I'm trying to call Limit_Switch_Min & Max but it gives me an syntax error
which says "syntax error"

in the header file i defined BASE_DR pwm01=pwm02

Limit_Switch_Min(BASE_1_LIMIT,&BASE_DR);
but if i write it this way it doesn't
Limit_Switch_Min(BASE_1_LIMIT,&pwm01);

can anynow tell me what is wrong with the way i wrote it?
Limit_Switch_Min(BASE_1_LIMIT,&BASE_DR);



For the top part i suppose
#define PWM_in1 rxdata.oi_analog01 would be stick 1Y
#define PWM_in1 rxdata.oi_analog05 would be stick 1X