PB by to compile PHOENIX CODE

Hello

i am doing phoenix hexapod with SCC-32U and boatborduino + PS2
i downloaded IDE arduino software and code for phoenix hexapod + PS2 lib on forum
i try to compile and i have a lot of errors i don’t understand what’s pb, could you help me please
here are errors after compilation :

Arduino : 1.6.11 (Windows 7), Carte : “Arduino Duemilanove or Diecimila, ATmega328”

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\Administrateur\Documents\Arduino\libraries -fqbn=arduino:avr:diecimila:cpu=atmega328 -ide-version=10611 -build-path C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\Administrateur\Desktop\HEXAPOD CODE\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\Administrateur\Documents\Arduino\libraries -fqbn=arduino:avr:diecimila:cpu=atmega328 -ide-version=10611 -build-path C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\Administrateur\Desktop\HEXAPOD CODE\BotBoarduino_CH3R_PS2\BotBoarduino_CH3R_PS2.ino
Using board ‘diecimila’ from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Using core ‘arduino’ from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Detecting libraries used…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib\PS2X_lib.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\PS2X_lib.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\PS2_controller.cpp” -o “nul”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\phoenix_driver_ssc32.cpp” -o “nul”
Generating function prototypes…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino10/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\preproc\ctags_target_for_gcc_minus_e.cpp”
Compilation du croquis…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp” -o “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\BotBoarduino_CH3R_PS2.ino.cpp.o”
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib” “-IC:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src” “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\PS2X_lib.cpp” -o “C:\Users\ADMINI~1\AppData\Local\Temp\buildee4b7c50c4f0593c79fd2807764d8abc.tmp\sketch\PS2X_lib.cpp.o”
PS2X_lib.cpp:26: error: stray ‘\302’ in program

Arduino-PS2X/PS2X_lib.cpp at master · Lynxmotion/Arduino-PS2X · GitHub

^

PS2X_lib.cpp:26: error: stray ‘\267’ in program

PS2X_lib.cpp:26: error: stray ‘\302’ in program

PS2X_lib.cpp:26: error: stray ‘\267’ in program

PS2X_lib.cpp:139: error: missing terminating ’ character

^

PS2X_lib.cpp:438: error: stray ‘#’ in program

<td id="LC1">#<span>include</span> <span><span>&quot;</span>PS2X_lib.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:442: error: stray ‘#’ in program

<td id="LC2">#<span>include</span> <span><span>&lt;</span>math.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:446: error: stray ‘#’ in program

<td id="LC3">#<span>include</span> <span><span>&lt;</span>stdio.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:450: error: stray ‘#’ in program

<td id="LC4">#<span>include</span> <span><span>&lt;</span>stdint.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:454: error: stray ‘#’ in program

<td id="LC5">#<span>include</span> <span><span>&lt;</span>avr/io.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:458: error: stray ‘#’ in program

<td id="LC6">#<span>if</span> ARDUINO &gt; 22</td>

^

PS2X_lib.cpp:462: error: stray ‘#’ in program

<td id="LC7">#<span>include</span> <span><span>&quot;</span>Arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:466: error: stray ‘#’ in program

<td id="LC8">#<span>else</span></td>

^

PS2X_lib.cpp:470: error: stray ‘#’ in program

<td id="LC9">#<span>include</span> <span><span>&quot;</span>WProgram.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:474: error: stray ‘#’ in program

<td id="LC10">#<span>include</span> <span><span>&quot;</span>pins_arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:478: error: stray ‘#’ in program

<td id="LC11">#<span>endif</span></td>

^

PS2X_lib.cpp:704: error: stray ‘#’ in program

<td id="LC64">#<span>if</span> CTRL_CLK_HIGH</td>

^

PS2X_lib.cpp:712: error: stray ‘#’ in program

<td id="LC66">#<span>endif</span>   </td>

^

PS2X_lib.cpp:989: error: stray ‘#’ in program

<td id="LC133"> #<span>ifdef</span> PS2X_COM_DEBUG</td>

^

PS2X_lib.cpp:1049: error: stray ‘#’ in program

<td id="LC148"> #<span>endif</span></td>

^

PS2X_lib.cpp:1066: error: stray ‘#’ in program

<td id="LC152">#<span>if</span> defined(__AVR__)</td>

^

PS2X_lib.cpp:1074: error: stray ‘#’ in program

<td id="LC154">#<span>else</span></td>

^

PS2X_lib.cpp:1082: error: stray ‘#’ in program

<td id="LC156">#<span>endif</span></td>

^

PS2X_lib.cpp:1142: error: stray ‘#’ in program

<td id="LC170">#<span>ifdef</span> __AVR__</td>

^

PS2X_lib.cpp:1178: error: stray ‘#’ in program

<td id="LC179">#<span>else</span></td>

^

PS2X_lib.cpp:1266: error: stray ‘#’ in program

<td id="LC200">#<span>endif</span>  </td>

^

PS2X_lib.cpp:1296: error: stray ‘#’ in program

<td id="LC207">#<span>if</span> defined(__AVR__)</td>

^

PS2X_lib.cpp:1304: error: stray ‘#’ in program

<td id="LC209">#<span>endif</span></td>

^

PS2X_lib.cpp:1348: error: stray ‘#’ in program

<td id="LC220">  #<span>ifdef</span> PS2X_DEBUG</td>

^

PS2X_lib.cpp:1364: error: stray ‘#’ in program

<td id="LC224">   #<span>endif</span></td>

^

PS2X_lib.cpp:1555: error: stray ‘#’ in program

<td id="LC271">  #<span>ifdef</span> PS2X_DEBUG</td>

^

PS2X_lib.cpp:1571: error: stray ‘#’ in program

<td id="LC275">  #<span>endif</span></td>

^

PS2X_lib.cpp:1635: error: stray ‘#’ in program

<td id="LC290">  #<span>ifdef</span> PS2X_COM_DEBUG</td>

^

PS2X_lib.cpp:1715: error: stray ‘#’ in program

<td id="LC310">  #<span>else</span></td>

^

PS2X_lib.cpp:1743: error: stray ‘#’ in program

<td id="LC317">   #<span>endif</span></td>

^

PS2X_lib.cpp:2070: error: stray ‘#’ in program

<td id="LC397">#<span>ifdef</span> __AVR__</td>

^

PS2X_lib.cpp:2269: error: stray ‘#’ in program

<td id="LC445">#<span>else</span></td>

^

PS2X_lib.cpp:2397: error: stray ‘#’ in program

<td id="LC475">#<span>endif</span></td>

^

PS2X_lib.cpp:2407: error: missing terminating ’ character

^

PS2X_lib.cpp:2457: error: missing terminating ’ character

You can’t perform that action at this time.

^

PS2X_lib.cpp:5: error: expected unqualified-id before ‘<’ token

^

PS2X_lib.cpp:438: error: expected unqualified-id before ‘<’ token

<td id="LC1">#<span>include</span> <span><span>&quot;</span>PS2X_lib.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:438: error: expected unqualified-id before ‘<’ token

<td id="LC1">#<span>include</span> <span><span>&quot;</span>PS2X_lib.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:442: error: expected unqualified-id before ‘<’ token

<td id="LC2">#<span>include</span> <span><span>&lt;</span>math.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:442: error: expected unqualified-id before ‘<’ token

<td id="LC2">#<span>include</span> <span><span>&lt;</span>math.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:446: error: expected unqualified-id before ‘<’ token

<td id="LC3">#<span>include</span> <span><span>&lt;</span>stdio.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:446: error: expected unqualified-id before ‘<’ token

<td id="LC3">#<span>include</span> <span><span>&lt;</span>stdio.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:450: error: expected unqualified-id before ‘<’ token

<td id="LC4">#<span>include</span> <span><span>&lt;</span>stdint.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:450: error: expected unqualified-id before ‘<’ token

<td id="LC4">#<span>include</span> <span><span>&lt;</span>stdint.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:454: error: expected unqualified-id before ‘<’ token

<td id="LC5">#<span>include</span> <span><span>&lt;</span>avr/io.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:454: error: expected unqualified-id before ‘<’ token

<td id="LC5">#<span>include</span> <span><span>&lt;</span>avr/io.h<span>&gt;</span></span></td>

^

PS2X_lib.cpp:458: error: expected unqualified-id before numeric constant

<td id="LC6">#<span>if</span> ARDUINO &gt; 22</td>

^

PS2X_lib.cpp:462: error: expected unqualified-id before ‘<’ token

<td id="LC7">#<span>include</span> <span><span>&quot;</span>Arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:462: error: expected unqualified-id before ‘<’ token

<td id="LC7">#<span>include</span> <span><span>&quot;</span>Arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:470: error: expected unqualified-id before ‘<’ token

<td id="LC9">#<span>include</span> <span><span>&quot;</span>WProgram.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:470: error: expected unqualified-id before ‘<’ token

<td id="LC9">#<span>include</span> <span><span>&quot;</span>WProgram.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:474: error: expected unqualified-id before ‘<’ token

<td id="LC10">#<span>include</span> <span><span>&quot;</span>pins_arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:474: error: expected unqualified-id before ‘<’ token

<td id="LC10">#<span>include</span> <span><span>&quot;</span>pins_arduino.h<span>&quot;</span></span></td>

^

PS2X_lib.cpp:497: error: expected unqualified-id before ‘<’ token

<td id="LC15"><span>static</span> byte enter_config]={0x01,0x43,0x00,0x01,0x00};</td>

^

PS2X_lib.cpp:501: error: expected unqualified-id before ‘<’ token

<td id="LC16"><span>static</span> byte set_mode]={0x01,0x44,0x00,0x01,0x03,0x00,0x00,0x00,0x00};</td>

^

PS2X_lib.cpp:505: error: expected unqualified-id before ‘<’ token

<td id="LC17"><span>static</span> byte set_bytes_large]={0x01,0x4F,0x00,0xFF,0xFF,0x03,0x00,0x00,0x00};</td>

^

PS2X_lib.cpp:509: error: expected unqualified-id before ‘<’ token

<td id="LC18"><span>static</span> byte exit_config]={0x01,0x43,0x00,0x00,0x5A,0x5A,0x5A,0x5A,0x5A};</td>

^

PS2X_lib.cpp:513: error: expected unqualified-id before ‘<’ token

<td id="LC19"><span>static</span> byte enable_rumble]={0x01,0x4D,0x00,0x00,0x01};</td>

^

PS2X_lib.cpp:517: error: expected unqualified-id before ‘<’ token

<td id="LC20"><span>static</span> byte type_read]={0x01,0x45,0x00,0x5A,0x5A,0x5A,0x5A,0x5A,0x5A};</td>

^

PS2X_lib.cpp:539: error: expected unqualified-id before ‘<’ token

<td id="LC25">}</td>

^

PS2X_lib.cpp:556: error: expected unqualified-id before ‘<’ token

<td id="LC29">}</td>

^

PS2X_lib.cpp:573: error: expected unqualified-id before ‘<’ token

<td id="LC33">}</td>

^

PS2X_lib.cpp:590: error: expected unqualified-id before ‘<’ token

<td id="LC37">}</td>

^

PS2X_lib.cpp:606: error: expected unqualified-id before ‘<’ token

<td id="LC41">}</td>

^

PS2X_lib.cpp:623: error: expected unqualified-id before ‘<’ token

<td id="LC45">}</td>

^

PS2X_lib.cpp:640: error: expected unqualified-id before ‘<’ token

<td id="LC49">}</td>

^

Plusieurs bibliothèque trouvées pour “PS2X_lib.h”
Utilisé : C:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib
Non utilisé : C:\Program Files\Arduino\libraries\BotBoarduino_CH3R_PS2
Utilisation de la bibliothèque PS2X_lib prise dans le dossier : C:\Users\Administrateur\Documents\Arduino\libraries\PS2X_lib (legacy)
Utilisation de la bibliothèque SoftwareSerial version 1.0 dans le dossier: C:\Program Files\Arduino\hardware\arduino\avr\libraries\SoftwareSerial
exit status 1
stray ‘\302’ in program

thanks you
best regards
Xavier MAGRI

Hi Xavier,

First, please note that if you need to attach large logs (such as the error log you posted) to your post, please instead attach it as a file, as it is rather unreadable in post format.
You can add attachments in Full editor mode by opening the Attachments bar (above the 4 orange buttons) and adding the needed files. See the attached image for details.

Concerning your problems with the library, it seems you download an HTML page instead of the actual library, as can be seen in your errors:[code]^
PS2X_lib.cpp:438: error: stray ‘#’ in program

#include "PS2X_lib.h" [/code]We recommend that you instead download the most up-to-date code available from the [Lynxmotion GitHub](https://github.com/Lynxmotion?tab=repositories), available [here (BotBoarduino 3/4 DoF)](https://github.com/Lynxmotion/3DOF-4DOF-Hex/tree/master/BotBoarduino).

Sincerely,

Hi scharette[highlight=#ffffff],[/highlight]

sorry for it and thanks you you solved a lot error but there is few persisting
i attached a file including errors

Thanks you for your help

Xavier
logs.txt (4.72 KB)

i think i found by myself, pb was that i included ps2x lib in project’s folder
when i removed compilation is ok
now i am searching how to send to botboarduino cause it failed …
thanks you
Xavier

Hi Xavier,

It seems you may have multiple libraries conflicting, as mentioned at the end of the error log (thanks for using a file! it is much more legible that way).

Sincerely,

Hi Xavier,

When programming the BotBoarduino, please use the following settings:
Arduino IDE - BotBoarduino settings.png
Sincerely,

it was “just” bad com port
now Program is in botboarduino coonected with SSC-32U
i play with ps2 gamepad but nothing moves
do you have tutorial to know what i supposed to do or an idea where i should start troubleshooting ?
thanks you
xavier

could you confirm that pin called “ACK” is not connected and pin called “7.5vdc” optionnal ?

ACK and 7.5V are on which board?

It is from PS2 receiver

The pins used are CMD, DAT, ATT, CLK, 5V and GND. You should not worry about any of the others (nor are they mentioned in the assembly guides).

Hope this helps,

thanks you
i think i have well plugged ps2 controller
but nothing moves when i play with PS2 controler
maybe i have to change speed to communicate to botboarduino ?
thanks you
xavier

an other question :
in user guide for botboarduino there is two different way to connect 5v and gnd of ps2 controller
which one is good please ?
i attached pictures
thanks you
xavier


bbduinom03.png

5V goes to the center pin, and GND goes to the GND pin. It does not matter if it is pin 6 or pin 9.
You need to upload the Phoenix code successfully via the Arduino IDE.
There’s quite a lot of setup, and even a very minor point will prevent it from working.
Be sure to read through the guide in detail.

why In same document something else :
Pin PS2 Function
Pin 6 DAT
Pin 7 CMD
Pin 8 ATT
Pin 9 CLK

i am lost!
wich part of this document i have to apply ?
thanks
xavier

In the sample code:

#define SOUND_PIN 5 // Botboarduino JR pin number #define PS2_DAT 8 #define PS2_CMD 7 #define PS2_SEL 6 // On the PS2 receiver this pin may be called ATT (attention) #define PS2_CLK 9

Hope this helps.

Ok let’s resume ill now:

Servo calibrated on SSC-32U and SSC configured at around 115000 bauds (don’t remenber exactly)
folder created and code placed in this folder, ps2X library inserted in arduino software
program compilation ok and upload to botboarduino ok

at this step i have doubt about ps2X lib, i have included in software but do i need to isert line in code like this :
#include <PS2X_lib.h>

the next step i put cable for com between ssc and botboarduino
i plug ps2 receiver in different way becaude each doc i see show something else so i tryed a lot but withou success…
thanks you for your precious help :wink:
xavier

The baud rate for softserial is 38400, as specified in the sample code.
Please be sure to read through the guide. You should not need to modify the code.

thanks you , i read but could you give me link to documentaion you are using because it is like i haven’t same version, i can’t find for example the speed you gave in tutorial on lynxmotion website
for info here is ps2 receiver i use but without the board close to him , i pluged cable directly from receiver to botboarduino
same pb with good com speed and new connections…

to resume documenation available on lynxmotion (for me) :
tuto phoenix hexapod
and individual doc for SSC and botboarduino
best regards
xavier

Phoenix setup: lynxmotion.com/images/html/build99f.htm
Wiring: lynxmotion.com/images/assemb … 32-ps2.jpg
HOWEVER, this shows the level shifter as opposed to the breakout board, so the pinout changes to:
DAT 8
CMD 7
SEL 6
CLK 9

Hope this helps.