Hi!
I desperately require your help regarding a problem I’m encountering.
Description Having difficulty with loading both the BotBoarduino_CH3R_PS2_2016-03-08 code and PS2X_lib files to Arduino IDE without encountering errors (i.e. “Hex_globals.h: No such file or directory”). I have limited but successful Arduino experience on a couple small projects so I do have some familiarity with uploading sketches, I bought the kit a few years back and finally have the time to put it together and would like to complete it now.
Hardware concerned: Original aluminum Phoenix 3DOF body, 18 Hitech HS-645MG Servos, SSC-32 and Botboarduino V1.0 PCBs from Lynxmotion and a newer V4 PS2 PCB. Everything is assembled and thoroughly checked. All servos are labled using SSC-32 port numbers. Everything powers up on each board. All connections have been triple checked.
Software concerned: Arduino IDE, software downloads Lynxmotion Hexapod Calibration Program (installed and waiting for Botboarduino programming)
Troubleshooting steps already taken: Please Note: there are a number of build plan discrepancies and code package editions which makes this more challenging than would first appear. I believe I’m good on the mechanical build and PCB installation and connections. I have RC car and robot building experience as well and I am a methodical builder. I have found Internet resources to assist with installing Arduino libraries and have seem to have gotten both the Phoenix code and PS2 code to reside in one sketch but I cannot upload to my board without errors. The Botboarduino PCB (and the PS2 Rx) light up when connected to my PC (without powering up the Phoenix). I’m surprised that there isn’t a complete Phoenix+PS2 code package available.
Additional information: At this point I am just trying to get a successful upload of code to my Phoenix to start Servo Calibration. Until I can do this and run the calibration program I’m unaware of any other potential issues. I’m either doing something wrong (or leaving something out) or there are newer less buggy code packs available.
UPDATE: Still have an issue but was able to fix the missing file issue (file did not stay with code packet).
Now the issue is that the code will not upload. This is the error message I get:
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: “Arduino Duemilanove or Diecimila, ATmega328P”
Build options changed, rebuilding all
sketch\phoenix_driver_ssc32.cpp: In member function ‘void ServoDriver::FindServoOffsets()’:
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
-
static char *apszLegs[] = {"RR","RM","RF", "LR", "LM", "LF"}; // Leg Order*
-
^*
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:366:64: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:367:71: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
-
static char *apszLJoints[] = {" Coxa", " Femur", " Tibia", " tArs"}; // which joint on the leg...*
-
^*
sketch\phoenix_driver_ssc32.cpp:367:71: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:367:71: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
sketch\phoenix_driver_ssc32.cpp:367:71: warning: ISO C++ forbids converting a string constant to 'char’ [-Wwrite-strings]*
C:\Users\Bill\Documents\Arduino\libraries\PS2X_lib\PS2X_lib.cpp: In member function ‘boolean PS2X::read_gamepad(boolean, byte)’:
C:\Users\Bill\Documents\Arduino\libraries\PS2X_lib\PS2X_lib.cpp:92:53: warning: narrowing conversion of ‘motor2’ from ‘byte {aka unsigned char}’ to ‘char’ inside { } [-Wnarrowing]
-
char dword[9] = {0x01,0x42,0,motor1,motor2,0,0,0,0};*
-
^Sketch uses 23286 bytes (75%) of program storage space. Maximum is 30720 bytes.*
Global variables use 1283 bytes (62%) of dynamic memory, leaving 765 bytes for local variables. Maximum is 2048 bytes.
Thank you so much in advance for your help!