I'm following Webbots new tutorial:
http://www.societyofrobots.com/member_tutorials/node/341and using his
WebbotLib.
My code starts off like this:
#include "sys/axon.h"
#include "servoPWM.h"
#include "a2d.h"
//user includes
#include "kinematics.c" //SoR Biped Engine
// Define sensors
#define gyro_X ADC_NUMBER_TO_CHANNEL(0)
#define gyro_Y ADC_NUMBER_TO_CHANNEL(1)
//snip
And in kinematics.c, it starts off with this:
//initialize variables
int16_t r1L;
int16_t r2L;
int16_t r4L;
//snip
But that gives me this error:
../kinematics.c:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r1L'
../kinematics.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r2L'
../kinematics.c:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'r4L'
But if I change it to:
//initialize variables
long signed int r1L;
long signed int r2L;
long signed int r4L;
then the error goes away . . .
This is happening to all my variables . . . Whats up?
In the manual, I see:
uint16_t counter;
so something else is up . . .