Skip to content

Commit

Permalink
Daco THC: invert axes on Single*Controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
prkunz committed Jan 28, 2025
1 parent 5384536 commit 95af45c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/idf/SingleCameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ SingleCameraController* SingleCameraController::createInstance(const DacoThc& da
dacoThc.leftRightTranslation,
*dummyInput,
dacoThc.forwardBackwardTranslation);

controller->pan.setInverted(true);
controller->tilt.setInverted(true);
controller->zoom.setInverted(true);

return controller;
}

Expand Down
5 changes: 5 additions & 0 deletions source/idf/SingleFlightController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ SingleFlightController* SingleFlightController::createInstance(const DacoThc& da
dacoThc.leftRightTranslation,
dacoThc.upDownTranslation
);

controller->x.setInverted(true);
controller->y.setInverted(true);
controller->z.setInverted(true);

return controller;
}

Expand Down
4 changes: 4 additions & 0 deletions source/idf/SingleRoboticsController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ SingleRoboticsController* SingleRoboticsController::createInstance(const DacoThc
*dummyInput,
dacoThc.switch1);

controller->x.setInverted(true);
controller->y.setInverted(true);
controller->z.setInverted(true);

return controller;
}
}

0 comments on commit 95af45c

Please sign in to comment.