motors are swapped on new chassis
This commit is contained in:
parent
99f0ed69e4
commit
b063a41783
1 changed files with 2 additions and 2 deletions
|
@ -250,8 +250,8 @@ async fn main(spawner: Spawner) {
|
||||||
info!("left to {}", clamp(forward+right, -1., 1.));
|
info!("left to {}", clamp(forward+right, -1., 1.));
|
||||||
info!("right to {}", clamp(forward-right, -1., 1.));
|
info!("right to {}", clamp(forward-right, -1., 1.));
|
||||||
|
|
||||||
c.compare_a = calc_speed(forward - right);
|
c.compare_a = calc_speed(-forward - right);
|
||||||
c.compare_b = calc_speed(forward + right);
|
c.compare_b = calc_speed(-forward + right);
|
||||||
drive_pwm.set_config(&c);
|
drive_pwm.set_config(&c);
|
||||||
},
|
},
|
||||||
ControlPacket::Fire => {
|
ControlPacket::Fire => {
|
||||||
|
|
Loading…
Reference in a new issue