Skip to content

Commit 6588b55

Browse files
Update RoboHeartBalanceBotContol.ino
Multiple "heart" on line 251.
1 parent 8c8adac commit 6588b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/RoboHeartBalanceBotContol/RoboHeartBalanceBotContol.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void loop() {
248248
if (pidControlTick >= PID_CONTROL_PRESCALER) {
249249
unsigned long curTimeIntervalMS = millis();
250250
pidControlTick = 0;
251-
currentAngleDeg = processAngle(heart.heart.getRotationX());
251+
currentAngleDeg = processAngle(heart.getRotationX());
252252

253253
float error = currentAngleDeg - targetAngleDeg;
254254
errorSum = constrain(errorSum + error, -Kp * 50, Kp * 50);

0 commit comments

Comments
 (0)