Skip to content

Commit 9a4422c

Browse files
committed
Fix default amplitude initialization in Otto controller to use a single zero instead of two digits.
1 parent 36ae4e6 commit 9a4422c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/boards/otto-robot/otto_controller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class OttoController {
120120

121121
// 读取振幅(短键名 "a"),默认0度
122122
for (int j = 0; j < SERVO_COUNT; j++) {
123-
amplitude[j] = 00; // 默认振幅0度
123+
amplitude[j] = 0; // 默认振幅0度
124124
}
125125
cJSON* amp_item = cJSON_GetObjectItem(osc_item, "a");
126126
if (cJSON_IsObject(amp_item)) {

0 commit comments

Comments
 (0)