You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code "Hummerbot_UltrasoundFollow" from Hummer-Bot4.0 contains this error when loading the code into arduino:
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:3:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::GoForward()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:79:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "GoForward\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::GoBack()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:90:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "GoBack\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::KeepStop()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:100:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "KeepStop\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::TurnLeft()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:111:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnLeft =%d \n", value);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::Drive(int)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:140:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "degree = %d speed = %d\n", degree, Speed);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:149:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnRight\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:164:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnLeft\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:172:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnRight\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: At global scope:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 1 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 2 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 3 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 1 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 2 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 3 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 4 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:3:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:214:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "SetPs2xPin\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:224:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "No controller found, check wiring\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:226:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller found but not accepting commands\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:228:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller refusing to enter Pressures mode, may not support it\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:230:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "Found Controller, configured successful\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'int Hummerbot::ResetPs2xPin()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:240:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "No controller found, check wiring\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:242:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller found but not accepting commands\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:244:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller refusing to enter Pressures mode, may not support it\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:246:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "Found Controller, configured successful\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: At global scope:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:275:60: warning: default argument given for parameter 1 of 'void Hummerbot::SetServoPin(uint8_t)' [-fpermissive]
void Hummerbot::SetServoPin(uint8_t Sevo_Pin = EM_SERVO_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:72:10: note: previous specification in 'void Hummerbot::SetServoPin(uint8_t)' here
void SetServoPin(uint8_t Sevo_Pin = EM_SERVO_PIN);
^~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 1 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 2 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 3 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 4 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:320:144: warning: default argument given for parameter 1 of 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:73:7: note: previous specification in 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' here
void SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:320:144: warning: default argument given for parameter 2 of 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:73:7: note: previous specification in 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' here
void SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:335:119: warning: default argument given for parameter 1 of 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:74:10: note: previous specification in 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' here
void SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:335:119: warning: default argument given for parameter 2 of 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:74:10: note: previous specification in 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' here
void SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\PS2X_lib.cpp: In member function 'boolean PS2X::read_gamepad(boolean, byte)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\PS2X_lib.cpp:138:61: 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};
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:7:102: warning: default argument given for parameter 1 of 'ProtocolParser::ProtocolParser(byte, byte)' [-fpermissive]
ProtocolParser::ProtocolParser(byte startcode = PROTOCOL_START_CODE, byte endcode = PROTOCOL_END_CODE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:14:5: note: previous specification in 'ProtocolParser::ProtocolParser(byte, byte)' here
ProtocolParser(byte header = PROTOCOL_START_CODE, byte end = PROTOCOL_END_CODE);
^~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:7:102: warning: default argument given for parameter 2 of 'ProtocolParser::ProtocolParser(byte, byte)' [-fpermissive]
ProtocolParser::ProtocolParser(byte startcode = PROTOCOL_START_CODE, byte endcode = PROTOCOL_END_CODE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:14:5: note: previous specification in 'ProtocolParser::ProtocolParser(byte, byte)' here
ProtocolParser(byte header = PROTOCOL_START_CODE, byte end = PROTOCOL_END_CODE);
^~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:32:53: warning: default argument given for parameter 1 of 'bool ProtocolParser::ParserPackage(byte*)' [-fpermissive]
bool ProtocolParser::ParserPackage(byte data = NULL)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:18:10: note: previous specification in 'bool ProtocolParser::ParserPackage(byte)' here
bool ParserPackage(byte data = NULL);
^~~~~~~~~~~~~
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:4:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::ParserPackage(byte)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:51:13: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("check sum error \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:51:13: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("check sum error \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:53:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "0x%x ", buffer[i]);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:61:9: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "\nRecevPackage end \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::RecevData()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:86:13: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "aviable\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:97:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "RecevData end \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:106:20: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "preRecvLen = %d\n", preRecvLen);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:119:21: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "preRecvLen \r\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:125:25: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "%x ", buffer[i]);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:127:21: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "buffer is over\r\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::RecevData(byte*, size_t)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:144:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "RecevData start \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:148:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("len > BUFFER_SIZE \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:148:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("len > BUFFER_SIZE \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:164:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "%x", m_pHeader);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:167:13: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "%x", m_pHeader);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:173:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "\nRecevPackage done\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::SendPackage(ST_PROTOCOL*, int)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:300:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("SendPackage error");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:300:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("SendPackage error");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.cpp:108:95: warning: default argument given for parameter 3 of 'void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX, long int, uint8_t)' [-fpermissive]
void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX index, long Color, uint8_t effect = E_EFFECT_NONE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.h:35:10: note: previous specification in 'void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX, long int, uint8_t)' here
void SetRgbEffect(E_RGB_INDEX index, long Color, uint8_t effect = E_EFFECT_NONE);
^~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:5:113: warning: default argument given for parameter 4 of 'SmartCar::SmartCar(String, byte, byte, E_SMARTCAR_CONTROL_MODE)' [-fpermissive]
SmartCar::SmartCar(String name, byte type, byte addr, E_SMARTCAR_CONTROL_MODE control_mode = E_BLUETOOTH_CONTROL)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:50:5: note: previous specification in 'SmartCar::SmartCar(String, byte, byte, E_SMARTCAR_CONTROL_MODE)' here
SmartCar(String name, byte type, byte addr, E_SMARTCAR_CONTROL_MODE control_mode = E_BLUETOOTH_CONTROL);
^~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:27:61: warning: invalid conversion from 'int' to 'E_SMARTCAR_CONTROL_MODE' [-fpermissive]
void SmartCar::SetControlMode(E_SMARTCAR_CONTROL_MODE mode=0)
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:60:43: warning: default argument given for parameter 1 of 'void SmartCar::SpeedUp(int8_t)' [-fpermissive]
void SmartCar::SpeedUp(int8_t Duration = 5)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:63:10: note: previous specification in 'void SmartCar::SpeedUp(int8_t)' here
void SpeedUp(int8_t Duration = 5);
^~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:70:45: warning: default argument given for parameter 1 of 'void SmartCar::SpeedDown(int8_t)' [-fpermissive]
void SmartCar::SpeedDown(int8_t Duration = 5)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:64:10: note: previous specification in 'void SmartCar::SpeedDown(int8_t)' here
void SpeedDown(int8_t Duration = 5);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:80:52: warning: invalid conversion from 'int' to 'E_SMARTCAR_STATUS' [-fpermissive]
void SmartCar::SetStatus(E_SMARTCAR_STATUS status=0)
^
I'm a layman, can someone help me solve it please.
The text was updated successfully, but these errors were encountered:
The code "Hummerbot_UltrasoundFollow" from Hummer-Bot4.0 contains this error when loading the code into arduino:
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:3:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::GoForward()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:79:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "GoForward\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::GoBack()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:90:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "GoBack\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::KeepStop()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:100:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "KeepStop\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::TurnLeft()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:111:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnLeft =%d \n", value);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'void Hummerbot::Drive(int)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:140:3: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "degree = %d speed = %d\n", degree, Speed);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:149:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnRight\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:164:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnLeft\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:172:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "TurnRight\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: At global scope:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 1 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 2 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:189:160: warning: default argument given for parameter 3 of 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:75:7: note: previous specification in 'void Hummerbot::SetInfraredTracingPin(uint8_t, uint8_t, uint8_t)' here
void SetInfraredTracingPin(uint8_t Pin1 = EM_INFRARED_TRACING_PIN1, uint8_t Pin2 = EM_INFRARED_TRACING_PIN2, uint8_t Pin3 = EM_INFRARED_TRACING_PIN3);
^~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 1 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 2 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 3 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:206:133: warning: default argument given for parameter 4 of 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
int Hummerbot::SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:76:6: note: previous specification in 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)' here
int SetPs2xPin(uint8_t clk = EM_PS2X_CLK, uint8_t cmd = EM_PS2X_CMD, uint8_t att = EM_PS2X_ATT, uint8_t dat = EM_PS2X_DAT);
^~~~~~~~~~
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:3:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'int Hummerbot::SetPs2xPin(uint8_t, uint8_t, uint8_t, uint8_t)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:214:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "SetPs2xPin\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:224:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "No controller found, check wiring\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:226:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller found but not accepting commands\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:228:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller refusing to enter Pressures mode, may not support it\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:230:7: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "Found Controller, configured successful\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: In member function 'int Hummerbot::ResetPs2xPin()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:240:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "No controller found, check wiring\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:242:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller found but not accepting commands\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:244:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "Controller refusing to enter Pressures mode, may not support it\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:246:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "Found Controller, configured successful\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp: At global scope:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:275:60: warning: default argument given for parameter 1 of 'void Hummerbot::SetServoPin(uint8_t)' [-fpermissive]
void Hummerbot::SetServoPin(uint8_t Sevo_Pin = EM_SERVO_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:72:10: note: previous specification in 'void Hummerbot::SetServoPin(uint8_t)' here
void SetServoPin(uint8_t Sevo_Pin = EM_SERVO_PIN);
^~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 1 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 2 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 3 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:304:232: warning: default argument given for parameter 4 of 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN, uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:94:10: note: previous specification in 'void Hummerbot::SetPhotoInfraredAvoidancePin(uint8_t, uint8_t, uint8_t, uint8_t)' here
void SetPhotoInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN,uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:320:144: warning: default argument given for parameter 1 of 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:73:7: note: previous specification in 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' here
void SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:320:144: warning: default argument given for parameter 2 of 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:73:7: note: previous specification in 'void Hummerbot::SetInfraredAvoidancePin(uint8_t, uint8_t)' here
void SetInfraredAvoidancePin(uint8_t L_Avoidance_Pin = EM_IR_AVOIDANCE_LEFT_PIN, uint8_t R_Avoidance_Pin = EM_IR_AVOIDANCE_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:335:119: warning: default argument given for parameter 1 of 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:74:10: note: previous specification in 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' here
void SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:335:119: warning: default argument given for parameter 2 of 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' [-fpermissive]
void Hummerbot::SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\Hummerbot.h:74:10: note: previous specification in 'void Hummerbot::SetPhotosensitivePin(uint8_t, uint8_t)' here
void SetPhotosensitivePin(uint8_t L_Photo_Pin = EM_PHOTO_LEFT_PIN, uint8_t R_Photo_Pin = EM_PHOTO_RIGHT_PIN);
^~~~~~~~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\PS2X_lib.cpp: In member function 'boolean PS2X::read_gamepad(boolean, byte)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\PS2X_lib.cpp:138:61: 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};
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:7:102: warning: default argument given for parameter 1 of 'ProtocolParser::ProtocolParser(byte, byte)' [-fpermissive]
ProtocolParser::ProtocolParser(byte startcode = PROTOCOL_START_CODE, byte endcode = PROTOCOL_END_CODE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:14:5: note: previous specification in 'ProtocolParser::ProtocolParser(byte, byte)' here
ProtocolParser(byte header = PROTOCOL_START_CODE, byte end = PROTOCOL_END_CODE);
^~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:7:102: warning: default argument given for parameter 2 of 'ProtocolParser::ProtocolParser(byte, byte)' [-fpermissive]
ProtocolParser::ProtocolParser(byte startcode = PROTOCOL_START_CODE, byte endcode = PROTOCOL_END_CODE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:14:5: note: previous specification in 'ProtocolParser::ProtocolParser(byte, byte)' here
ProtocolParser(byte header = PROTOCOL_START_CODE, byte end = PROTOCOL_END_CODE);
^~~~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:32:53: warning: default argument given for parameter 1 of 'bool ProtocolParser::ParserPackage(byte*)' [-fpermissive]
bool ProtocolParser::ParserPackage(byte data = NULL)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:2:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.h:18:10: note: previous specification in 'bool ProtocolParser::ParserPackage(byte)' here
bool ParserPackage(byte data = NULL);
^~~~~~~~~~~~~
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:4:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::ParserPackage(byte)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:51:13: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("check sum error \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:51:13: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("check sum error \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:53:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "0x%x ", buffer[i]);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:61:9: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "\nRecevPackage end \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::RecevData()':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:86:13: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "aviable\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:97:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "RecevData end \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:106:20: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "preRecvLen = %d\n", preRecvLen);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:119:21: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "preRecvLen \r\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:125:25: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "%x ", buffer[i]);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:127:21: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_ERR, "buffer is over\r\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::RecevData(byte*, size_t)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:144:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "RecevData start \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:148:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("len > BUFFER_SIZE \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:148:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("len > BUFFER_SIZE \n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:164:17: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "%x", m_pHeader);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:167:13: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "%x", m_pHeader);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:19:42: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);}
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:173:5: note: in expansion of macro 'DEBUG_LOG'
DEBUG_LOG(DEBUG_LEVEL_INFO, "\nRecevPackage done\n");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp: In member function 'bool ProtocolParser::SendPackage(ST_PROTOCOL*, int)':
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:24:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf("[Error][%s:%s:%d]",FILE,FUNCTION,LINE);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:300:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("SendPackage error");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\debug.h:25:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
arduino_printf(fmt, ##VA_ARGS);
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\ProtocolParser.cpp:300:9: note: in expansion of macro 'DEBUG_ERR'
DEBUG_ERR("SendPackage error");
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.cpp:108:95: warning: default argument given for parameter 3 of 'void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX, long int, uint8_t)' [-fpermissive]
void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX index, long Color, uint8_t effect = E_EFFECT_NONE)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\RgbUltrasonic.h:35:10: note: previous specification in 'void RgbUltrasonic::SetRgbEffect(E_RGB_INDEX, long int, uint8_t)' here
void SetRgbEffect(E_RGB_INDEX index, long Color, uint8_t effect = E_EFFECT_NONE);
^~~~~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:5:113: warning: default argument given for parameter 4 of 'SmartCar::SmartCar(String, byte, byte, E_SMARTCAR_CONTROL_MODE)' [-fpermissive]
SmartCar::SmartCar(String name, byte type, byte addr, E_SMARTCAR_CONTROL_MODE control_mode = E_BLUETOOTH_CONTROL)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:50:5: note: previous specification in 'SmartCar::SmartCar(String, byte, byte, E_SMARTCAR_CONTROL_MODE)' here
SmartCar(String name, byte type, byte addr, E_SMARTCAR_CONTROL_MODE control_mode = E_BLUETOOTH_CONTROL);
^~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:27:61: warning: invalid conversion from 'int' to 'E_SMARTCAR_CONTROL_MODE' [-fpermissive]
void SmartCar::SetControlMode(E_SMARTCAR_CONTROL_MODE mode=0)
^
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:60:43: warning: default argument given for parameter 1 of 'void SmartCar::SpeedUp(int8_t)' [-fpermissive]
void SmartCar::SpeedUp(int8_t Duration = 5)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:63:10: note: previous specification in 'void SmartCar::SpeedUp(int8_t)' here
void SpeedUp(int8_t Duration = 5);
^~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:70:45: warning: default argument given for parameter 1 of 'void SmartCar::SpeedDown(int8_t)' [-fpermissive]
void SmartCar::SpeedDown(int8_t Duration = 5)
^
In file included from D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:1:0:
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.h:64:10: note: previous specification in 'void SmartCar::SpeedDown(int8_t)' here
void SpeedDown(int8_t Duration = 5);
^~~~~~~~~
D:\Users\User\Desktop\hummer-bot-Hummer-bot4.0\Lesson\Comprehensive Experiment\Hummerbot_UltrasoundFollow\SmartCar.cpp:80:52: warning: invalid conversion from 'int' to 'E_SMARTCAR_STATUS' [-fpermissive]
void SmartCar::SetStatus(E_SMARTCAR_STATUS status=0)
^
I'm a layman, can someone help me solve it please.
The text was updated successfully, but these errors were encountered: