Skip to content

Commit

Permalink
Adjusted to Odrive wiring order
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSaliba01 committed May 11, 2024
1 parent 05c7539 commit a530450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular_ui_app/src/app/components/drive/drive.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class DriveComponent {

this.gamepadService.connectControllerGamepad(
(input_dir: { [key: string]: number | boolean }) => {
this.gamepad_drive_pub.publish({data: [input_dir['a2'], input_dir['a4']]});
this.gamepad_drive_pub.publish({data: [-input_dir['a2'], -input_dir['a4']]});

if (input_dir['up']) {
this.pantilt_pitch = this.clamp(this.pantilt_pitch + this.angle_delta);
Expand Down

0 comments on commit a530450

Please sign in to comment.