Skip to content

Commit

Permalink
feat(ui): Swap Manual control cw & ccw rotation button
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Nov 25, 2021
1 parent a634d1f commit 44eab06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/robot/ManualControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ const ManualControlInternal: React.FunctionComponent = (): JSX.Element => {
<Box/>

<Stack direction="row" sx={{width: "100%", height: "30vh"}} justifyContent="center" alignItems="center">
<SideButton variant="outlined" disabled={!rotateCwEnabled}
<SideButton variant="outlined" disabled={!rotateCcwEnabled}
onClick={() => {
sendMoveCommand("rotate_clockwise");
sendMoveCommand("rotate_counterclockwise");
}}>
<RotateRightIcon/>
<RotateLeftIcon/>
</SideButton>
<Stack sx={{width: "40%", height: "100%", ml: 1, mr: 1}} justifyContent="space-between">
<CenterButton sx={{height: "65%"}} variant="outlined" disabled={!forwardEnabled}
Expand All @@ -108,11 +108,11 @@ const ManualControlInternal: React.FunctionComponent = (): JSX.Element => {
<ArrowDownwardIcon/>
</CenterButton>
</Stack>
<SideButton variant="outlined" disabled={!rotateCcwEnabled}
<SideButton variant="outlined" disabled={!rotateCwEnabled}
onClick={() => {
sendMoveCommand("rotate_counterclockwise");
sendMoveCommand("rotate_clockwise");
}}>
<RotateLeftIcon/>
<RotateRightIcon/>
</SideButton>
</Stack>
</>
Expand Down

0 comments on commit 44eab06

Please sign in to comment.