【类 型】:fix
【原 因】:测试bug阶段 loop函数没有循环 疑似看门口问题 【过 程】: 【影 响】:
This commit is contained in:
parent
8191c2ef39
commit
b9427a4706
@ -13,7 +13,7 @@ platform = espressif32
|
|||||||
board = esp32doit-devkit-v1
|
board = esp32doit-devkit-v1
|
||||||
framework = arduino
|
framework = arduino
|
||||||
build_flags = -DCORE_DEBUG_LEVEL=4
|
build_flags = -DCORE_DEBUG_LEVEL=4
|
||||||
monitor_speed = 115200
|
monitor_speed = 57600
|
||||||
;upload_port = COM[14]
|
;upload_port = COM[14]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
bogde/HX711@^0.7.5
|
bogde/HX711@^0.7.5
|
||||||
|
@ -306,7 +306,6 @@ void FoodCube::playText(String str, bool flying)
|
|||||||
{
|
{
|
||||||
command[index++] = (int)vstr[i];
|
command[index++] = (int)vstr[i];
|
||||||
}
|
}
|
||||||
logln("playText");
|
|
||||||
/*
|
/*
|
||||||
log("sendplay:");
|
log("sendplay:");
|
||||||
for (int i = 0; i < sizeof(command); i++) {
|
for (int i = 0; i < sizeof(command); i++) {
|
||||||
|
16
src/main.cpp
16
src/main.cpp
@ -401,7 +401,11 @@ void loop()
|
|||||||
// sercomm.getcommand(); // 得到控制命令
|
// sercomm.getcommand(); // 得到控制命令
|
||||||
button_checktop.tick(); // 按钮
|
button_checktop.tick(); // 按钮
|
||||||
button_down.tick(); // 按钮
|
button_down.tick(); // 按钮
|
||||||
button_up.tick(); // 按钮
|
fc.logln("hello");
|
||||||
|
fc.logln("hello");
|
||||||
|
fc.logln("hello");
|
||||||
|
fc.logln("hello");
|
||||||
|
button_up.tick(); // 按钮
|
||||||
button_test.tick();
|
button_test.tick();
|
||||||
motocontrol.setweight(pullweight); // 告诉电机拉的重量
|
motocontrol.setweight(pullweight); // 告诉电机拉的重量
|
||||||
motocontrol.update(); // 电机控制
|
motocontrol.update(); // 电机控制
|
||||||
@ -644,6 +648,16 @@ void up_action(float motospeed)
|
|||||||
// 放线按钮--单击
|
// 放线按钮--单击
|
||||||
void downbtn_click()
|
void downbtn_click()
|
||||||
{
|
{
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
|
fc.logln("downbtn_click");
|
||||||
ESP_LOGD(MOUDLENAME, "Down_click");
|
ESP_LOGD(MOUDLENAME, "Down_click");
|
||||||
_checkweightcal = true; // 检测是否需要校准称重传感器--在下放停止时检测
|
_checkweightcal = true; // 检测是否需要校准称重传感器--在下放停止时检测
|
||||||
_checkweighttimes = 0;
|
_checkweighttimes = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user