hummer-bot's People
Forkers
safiphone scottrippetoe pitrisek arkadii1 karrydu shravan-gatty github4mathews ishmam2005 madewira27 maneeshsingh1920 benjamin998 midorabea71 kingkoopa12 salem53 assid2019 shreyavprata peacesinister wolfer99 cokefenta kjh119 bosor95 utsabkayal stanislavyovkov nektarios25ma innoxeious heimichbies palamoto roobonet saibderbal bazaboyo derbalibaha maxooooooo anandmoolya justokey neuralmodelling joanmouba utkarshhere howaboutthishuh hameed1989 gaiuspartan lenbio-maker mouadox manoj555888 dmitriy-stf jakparter2080 cavemani shivkumar30 midoa0187 harshavardhankanoj knplsrinagar savior131 shabamusthafa thenuramax athu123456 yacsf vaasvictor20 shermanhk yudhafre pritamkumarsahoo69 ashketchum91 ns81sx ebra120him ade3ayo merdockjons red9030 varshneyanurag125 danielcv000 npoors tushar7439 ayushsingh7652 bibekvivek yasasri24 svrbaskyhummer-bot's Issues
下载不了
下载显示无效文件啊
Cant download
Bro
Links are expired and too hard to download.
Please make a direct link to download the sketch.
We are awaited for it.
Brightness of the ultrasonic module.
I want to adjust the brightness of the ultrasonic module.
Problem in Hummer-Bot with BLE-UNO
Dears EMAKEFUN;
I purchased the amazing robot Hummer-Bot from Ali Express (Childhood Dreamwork), I received it just yesterday.
It is the model with Arduino BLE-UNO.
I did the assembly yesterday and today began with testing.
I was following the test programs in “Hummer-Bot-4.0_Instruction_Manual_V.1.5.pdf”.
I began from Motor_Test step by step and arrived to InfraredTracingModule_Test.
Every thing was OK, but the robot began to not accepting any new upload from Arduino ID.
I tried to disconnect the connection with PC and cut the power on the Robot many time.
It succeeded one time and accepted the upload, but after that nothing. And it is now not taking any now program.
I need your support.
My email is: [email protected]
I sent to: [email protected] ; [email protected] but not delivered.
also the Mob number +8615986700612 has no whatsapp
Error in Hummer-Bot4.0 code
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.
PS3 gamepad connection
Hello.
Please, tell me is it possible to connect PS3 gamepad via bluetooth directly to hummer-bot?
Amazon link broken!!
Please give a new link or fix it!!
Weight analyzer
Using Arduino the weight machine of load cell measure the weight and GSM send sms weight show in lcd display
RGB ultrasonic obstacle avoidance module not detecting distance.
The distance always shows 0.00cm. The RGB LEDs work fine.
#include "RGBLed.h"
#define RGB_RED 0xFF0000
#define RGB_GREEN 0x00FF00
#define RGB_BLUE 0x0000FF
#define RGB_YELLOW 0xFFFF00
#define RGB_PURPLE 0xFF00FF
#define RGB_WHITE 0xFFFFFF
const int SingPin = 3;
const int RgbPin = 2;
float distance;
RGBLed mRgb(RgbPin,6);
void setup() {
Serial.begin(9600);
Serial.println("Ultrasonic sensor:");
mRgb.setColor(1,RGB_RED);
mRgb.setColor(2,RGB_GREEN);
mRgb.setColor(3,RGB_BLUE);
mRgb.setColor(4,RGB_YELLOW);
mRgb.setColor(5,RGB_PURPLE);
mRgb.setColor(6,RGB_WHITE);
mRgb.show();
}
void loop() {
digitalWrite(SingPin, LOW);
delayMicroseconds(2);
digitalWrite(SingPin, HIGH);
delayMicroseconds(10);
digitalWrite(SingPin, LOW);
pinMode(SingPin, INPUT);
distance = pulseIn(SingPin, HIGH) / 58.00;
Serial.print("distance is :");
Serial.print(distance);
Serial.print("cm");
Serial.println();
delay(1000);
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.