Bug in BotBoarduino_CH3R_PS2?

Hello,

I downloaded and unzipped the file including BotBoarduino_CH3R_PS2 and opened it in the Arduino 1.0.5 IDE. When I clicked on the Verify option I got errors as follows:

PS2_controller.cpp:91: error: ‘PS2X’ does not name a type
PS2_controller.cpp: In member function ‘void InputController::Init()’:
PS2_controller.cpp:123: error: ‘ps2x’ was not declared in this scope
PS2_controller.cpp: In member function ‘void InputController::ControlInput()’:
PS2_controller.cpp:155: error: ‘ps2x’ was not declared in this scope
PS2_controller.cpp:162: error: ‘PSB_START’ was not declared in this scope
PS2_controller.cpp:175: error: ‘PSB_L1’ was not declared in this scope
PS2_controller.cpp:188: error: ‘PSB_L2’ was not declared in this scope
PS2_controller.cpp:201: error: ‘PSB_CIRCLE’ was not declared in this scope
PS2_controller.cpp:218: error: ‘PSB_CROSS’ was not declared in this scope
PS2_controller.cpp:230: error: ‘PSB_SQUARE’ was not declared in this scope
PS2_controller.cpp:240: error: ‘PSB_TRIANGLE’ was not declared in this scope
PS2_controller.cpp:247: error: ‘PSB_PAD_UP’ was not declared in this scope
PS2_controller.cpp:250: error: ‘PSB_PAD_DOWN’ was not declared in this scope
PS2_controller.cpp:253: error: ‘PSB_PAD_RIGHT’ was not declared in this scope
PS2_controller.cpp:260: error: ‘PSB_PAD_LEFT’ was not declared in this scope
PS2_controller.cpp:270: error: ‘PSB_SELECT’ was not declared in this scope
PS2_controller.cpp:285: error: ‘PSB_R1’ was not declared in this scope
PS2_controller.cpp:295: error: ‘PSB_R2’ was not declared in this scope
PS2_controller.cpp:301: error: ‘PSB_R3’ was not declared in this scope
PS2_controller.cpp:308: error: ‘PSS_RY’ was not declared in this scope
PS2_controller.cpp:311: error: ‘PSS_LX’ was not declared in this scope
PS2_controller.cpp:312: error: ‘PSS_LY’ was not declared in this scope
PS2_controller.cpp:320: error: ‘PSS_RX’ was not declared in this scope
PS2_controller.cpp:326: error: ‘PSS_LX’ was not declared in this scope
PS2_controller.cpp:327: error: ‘PSS_LY’ was not declared in this scope
PS2_controller.cpp:328: error: ‘PSS_RX’ was not declared in this scope
PS2_controller.cpp:329: error: ‘PSS_RY’ was not declared in this scope
PS2_controller.cpp:334: error: ‘PSS_LY’ was not declared in this scope
PS2_controller.cpp:335: error: ‘PSS_RX’ was not declared in this scope
PS2_controller.cpp:336: error: ‘PSS_LX’ was not declared in this scope
PS2_controller.cpp:337: error: ‘PSS_RY’ was not declared in this scope
PS2_controller.cpp:343: error: ‘PSB_SELECT’ was not declared in this scope
PS2_controller.cpp:351: error: ‘PSS_LX’ was not declared in this scope
PS2_controller.cpp:352: error: ‘PSS_RY’ was not declared in this scope
PS2_controller.cpp:353: error: ‘PSS_LY’ was not declared in this scope
PS2_controller.cpp:356: error: ‘PSB_R2’ was not declared in this scope
PS2_controller.cpp:367: error: ‘PSB_SELECT’ was not declared in this scope
PS2_controller.cpp:379: error: ‘PSB_R2’ was not declared in this scope
PS2_controller.cpp:385: error: ‘PSS_LX’ was not declared in this scope
PS2_controller.cpp:385: error: ‘PSS_LY’ was not declared in this scope
PS2_controller.cpp:385: error: ‘PSS_RX’ was not declared in this scope

Is an OK version available?

Thank you.
Ted

Hi Ted,

You will need to download and install the PS2X_lib library from the following location into your Arduino’s library folder:

More details:

We hope this helps,