Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
chore: Fix device naming and linear command ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Feb 13, 2021
1 parent 31e5105 commit af62232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/PositionComponent/PositionComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class PositionComponent extends Vue {
this.onOscillationTick();
return;
}
await this.device.linear(this.timeValue * 1000, this.positionValue[this.goalPositionIndex] * 0.01);
await this.device.linear(this.positionValue[this.goalPositionIndex] * 0.01, this.timeValue * 1000);

// flip goal position index
this.goalPositionIndex ^= 1;
Expand Down
2 changes: 1 addition & 1 deletion src/components/PositionComponent/PositionComponent.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="position-control">
<h2>{{ device.name }} - Position Control</h2>
<h2>{{ device.Name }} - Position Control</h2>
<vue-slider ref="positionSlider"
:real-time="true"
v-model="positionValue"
Expand Down
2 changes: 1 addition & 1 deletion src/components/RotationComponent/RotationComponent.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="rotation">
<h2>{{ device.name }} - Rotation Control</h2>
<h2>{{ device.Name }} - Rotation Control</h2>
<vue-slider ref="slider"
:real-time="true"
:min="-100"
Expand Down

0 comments on commit af62232

Please sign in to comment.