Trouble to compile hexapod code

In file included from C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino:31:0:

sketch\Hex_globals.h:1:1: error: ‘ps2x’ does not name a type

ps2x.config_gamepad

^

In file included from C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino:31:0:

sketch\Hex_globals.h:46:8: error: ‘ServoDriver’ does not name a type

extern ServoDriver g_ServoDriver; // our global servo driver class

    ^

BotBoarduino_CH3R_PS2:223: error: ‘ServoDriver’ does not name a type

ServoDriver g_ServoDriver; // our global servo driver class

^

C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino: In function ‘void setup()’:

BotBoarduino_CH3R_PS2:307: error: ‘g_ServoDriver’ was not declared in this scope

 g_ServoDriver.Init();

 ^

C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino: In function ‘void loop()’:

BotBoarduino_CH3R_PS2:386: error: ‘g_ServoDriver’ was not declared in this scope

 g_ServoDriver.GPPlayer();

 ^

C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino: In function ‘void StartUpdateServos()’:

BotBoarduino_CH3R_PS2:553: error: ‘g_ServoDriver’ was not declared in this scope

 g_ServoDriver.BeginServoUpdate();    // Start the update 

 ^

C:\Users\Claudio Ernandes\Documents\Projeto Hexapode\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino: In function ‘boolean TerminalMonitor()’:

BotBoarduino_CH3R_PS2:1361: error: ‘g_ServoDriver’ was not declared in this scope

         g_ServoDriver.FindServoOffsets();

         ^

BotBoarduino_CH3R_PS2:1365: error: ‘g_ServoDriver’ was not declared in this scope

         g_ServoDriver.SSCForwarder();

         ^

exit status 1
‘ServoDriver’ does not name a type

Hi,

Those errors are most likely due to missing files or libraries (or both!).

We recommend that you obtain a fresh copy of the code here. You should also read the description (README.md) on that page.

Here’s a direct link to the source code. Before trying to open it in the Arduino IDE make sure to fully extract all contents of the ZIP file to a folder. It should look something like this:

Sincerely,