Re: FTC_Comp_Include.c doesn't compile
I see. It looks like the template is for single program mode. Our team doesn't use that template. We use dual program mode with our own templates. I tried to understand what the FTC_Comp template is trying to do but it seems broken to me. First, it is using FTCMotor. FTCMotor is only defined in BuiltInVariables.txt and nowhere else. It has a note in the comment that this is temporary definition for prototype hardware. Secondly, it only deals with 3 LEGO motors and 2 "FTC motors". A typical FTC competition robot has more than that. Lastly, the joystick global structure is already declared in JoystickDriver.c, and it is declared again in FTC_Comp_Include.c. It's obviously wrong. So I recommend you to use dual program mode (autonomous.c and teleop.c). Or you can send email to firstname.lastname@example.org
and ask them why FTC_Comp_Template.c is not working.