Quote:
Originally Posted by johncap100
pl_sw_trig has not been defined
|
"p1_" not "pl_"
I think you might not have used the numeral one.
It stands for port 1 on the Operator Interface. You can also use a joystick connected to any of the four ports available and refer to the buttons by the prefixes "p1_" "p2_" "p3_" or "p4_"
Quote:
Originally Posted by johncap100
"call of function without prototype" referring to the Autonomous (); line.
|
The compiler needs to be told a little bit about how the Autonomous() function is supposed to be called.
Up at the top of user_routines.c after the "#include" lines add the statement:
Code:
void Autonomous(void);
This'll tell the compiler that the routine doesn't have any calling arguments.
Doing this in users_routines.c is fine.