BotBoarduino_CH3R_PS2 wont compile!

Hi,

Im trying to get this working…
I loaded the BotBoarduino_CH3R_PS2.ino and hit compile,
A lot of errors appeared,
Then I found some notes about it on this forum, and downloaded github.com/madsci1016/Arduino-PS2X library.

But I still got some compiling errors.
Error compiling -----------------------------------------------------------------------------------------------------------------------------------------
In file included from BotBoarduino_CH3R_PS2.ino:28:
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:9: error: stray ‘\302’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:9: error: stray ‘\267’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:9: error: stray ‘\302’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:9: error: stray ‘\267’ in program
In file included from BotBoarduino_CH3R_PS2.ino:28:
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:308:46: error: invalid suffix “a46088d206eb30fca4c8d78a41” on integer constant
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:309:62: error: invalid suffix “a46088d206eb30fca4c8d78a41” on integer constant
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:386: error: stray ‘\342’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:386: error: stray ‘\200’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:386: error: stray ‘\246’ in program
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:4: error: expected unqualified-id before ‘<’ token
C:\Garaget\Audrino_Project\Software\arduino-1.0.5-windows\arduino-1.0.5\libraries\PS2X_lib/PS2X_lib.h:709: error: expected unqualified-id before numeric constant

Can some one help me??
Best regards,
N.

Sounds like you have a corrupted file PS2X_lib.h. Try downloading a fresh copy of it from www.github.com/lynxmotion

Kurt

Thank you :slight_smile:

As easy as that :slight_smile:

There should be an update of the instructions at lynxmotion.com/images/html/build99f.htm
with info about where to download the files and also how to download from Github (I had to look for a long time before I found the zip downlod :slight_smile: …)

(EDIT: this is the link to the PS2 files on GITHUB: github.com/Lynxmotion/Arduino-PS2X
This is the ZIP to download: github.com/Lynxmotion/Arduino-P … master.zip )

Again thank you for fast reply, I will be awake for a long time tonight testing and playing with my new robot :slight_smile:

/N.

Appreciate the feedback and happy you got it working.