Skip to content

Commit c86351a

Browse files
committed
Various fixes (motors, menu crash)
1 parent 97281e6 commit c86351a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/Braccio__Template/Braccio__Template.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void event_handler(lv_event_t * e)
2424

2525

2626
static const char * btnm_map[] = {"Demo", "Learn", "\n",
27-
"Repeat", "Unlock", "\n",
27+
"Repeat", "Unlock", "\n", "\0"
2828
};
2929

3030
void customMenu() {

src/Braccio.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ bool BraccioClass::begin(voidFuncPtr customMenu) {
127127
i2c_mutex.lock();
128128
PD_UFP.print_status(Serial);
129129
//PD_UFP.print_status(Serial);
130-
PD_UFP.init_PPS(PPS_V(7.2), PPS_A(2.0));
130+
PD_UFP.set_PPS(PPS_V(7.2), PPS_A(2.0));
131+
delay(10);
131132
i2c_mutex.unlock();
132133
}
133134

src/lib/motors/SmartServo.cpp.impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ template <int MAX_MOTORS> int SmartServoClass<MAX_MOTORS>::begin() {
140140
if (_RS485) {
141141
_txPacket.header[0] = 0xff;
142142
_txPacket.header[1] = 0xff;
143-
_RS485.begin(115200, 0, 80);
143+
_RS485.begin(115200, 0, 90);
144144
writeByteCmd(BROADCAST,SERVO_MOTOR_MODE,1);
145145
writeByteCmd(BROADCAST,TORQUE_SWITCH,1);
146146
_positionMode = pmIMMEDIATE;

0 commit comments

Comments
 (0)