继续优化平衡控制,多次连续跳跃,毫无压力。
增加原地起立功能。 简化控制,通过 esp32 遥控器直接控制,无需配网。 遥控器地址:#小程序://闲鱼/4I7SlDlYRnybNWd
This commit is contained in:
1 parent
21770c9531
commit
78bad24dc0
694 files changed
+2022
-54
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
set the current position as middle.
|
||||
*/
|
||||
|
||||
#include <SCServo.h>
|
||||
|
||||
SMS_STS st;
|
||||
|
||||
// the uart used to control servos.
|
||||
// GPIO 18 - S_RXD, GPIO 19 - S_TXD, as default.
|
||||
#define S_RXD 18
|
||||
#define S_TXD 19
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial1.begin(1000000, SERIAL_8N1, S_RXD, S_TXD);
|
||||
st.pSerial = &Serial1;
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
st.CalibrationOfs(1);
|
||||
while(1);
|
||||
}
|
||||
Reference in new issue
Block a user