Skip to content

Commit 6fc95bc

Browse files
committed
Update LowState to V1.5 firmware
1 parent d4f5b14 commit 6fc95bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/booster/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ use pyo3::prelude::*;
1919
pub struct LowState {
2020
/// IMU feedback
2121
pub imu_state: ImuState,
22-
/// Serial structure joint feedback
23-
pub motor_state_serial: [MotorState; 22],
2422
/// Parallel structure joint feedback
2523
pub motor_state_parallel: Vec<MotorState>,
24+
/// Serial structure joint feedback
25+
pub motor_state_serial: Vec<MotorState>,
2626
}
2727

2828
#[cfg(feature = "pyo3")]
@@ -31,13 +31,13 @@ impl LowState {
3131
#[new]
3232
pub fn new(
3333
imu_state: ImuState,
34-
motor_state_serial: [MotorState; 22],
3534
motor_state_parallel: Vec<MotorState>,
35+
motor_state_serial: Vec<MotorState>,
3636
) -> Self {
3737
Self {
3838
imu_state,
39-
motor_state_serial,
4039
motor_state_parallel,
40+
motor_state_serial,
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)