Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 2, 2023
1 parent 91ad713 commit 2d08030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions photon-client/src/components/dashboard/tabs/TargetsTab.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { DefaultAprilTagPipelineSettings, PipelineType } from "@/types/PipelineTypes";
import { PipelineType } from "@/types/PipelineTypes";
import { useStateStore } from "@/stores/StateStore";
</script>

Expand Down Expand Up @@ -77,12 +77,12 @@ import { useStateStore } from "@/stores/StateStore";
</v-simple-table>
</v-row>
<v-row
align="start"
class="pb-4 white--text"
v-if="
useCameraSettingsStore().currentPipelineSettings.pipelineType === PipelineType.AprilTag &&
useCameraSettingsStore().currentPipelineSettings.doMultiTarget
"
align="start"
class="pb-4 white--text"
>
<v-card-subtitle>Multi-tag pose, field-to-robot</v-card-subtitle>
<v-simple-table fixed-header height="100%" dense dark>
Expand Down
7 changes: 2 additions & 5 deletions photon-client/src/components/settings/ApriltagControlCard.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
import CvSlider from "@/components/common/cv-slider.vue";
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { useStateStore } from "@/stores/StateStore";
import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore";
import { Euler, Quaternion } from "three";
Expand Down Expand Up @@ -39,10 +36,10 @@ const degrees = (radians: number): number => (radians * 180) / Math.PI;
<tbody>
<tr v-for="(tag, index) in useSettingsStore().currentFieldLayout.tags" :key="index">
<td>{{ tag.ID }}</td>
<td v-for="val in Object.values(tag.pose.translation).slice(0, 3).map(degrees)">
<td v-for="(val, idx) in Object.values(tag.pose.translation).slice(0, 3).map(degrees)" :key="idx">
{{ val.toFixed(2) }}
</td>
<td v-for="val in Object.values(quatToEuler(tag.pose.rotation.quaternion)).slice(0, 3).map(degrees)">
<td v-for="(val, idx) in Object.values(quatToEuler(tag.pose.rotation.quaternion)).slice(0, 3).map(degrees)" :key="idx">
{{ val.toFixed(2) }}
</td>
</tr>
Expand Down

0 comments on commit 2d08030

Please sign in to comment.