Files
PhotonVision/photon-client/src/components/pipeline/OutputTab/DualCalibration.vue

64 lines
1.3 KiB
Vue
Raw Normal View History

2019-10-26 23:41:45 +03:00
<template>
<div>
<v-row
align="center"
justify="start"
>
<v-col cols="4">
<v-btn
small
color="accent"
style="width: 100%;"
class="black--text"
@click="takePointA"
>
Take Point A
</v-btn>
</v-col>
<v-col cols="4">
<v-btn
small
color="accent"
style="width: 100%;"
class="black--text"
@click="takePointB"
>
Take Point B
</v-btn>
</v-col>
<v-col cols="4">
<v-btn
small
color="yellow darken-3"
style="width: 100%;"
@click="clearPoints"
>
Clear All Points
</v-btn>
</v-col>
</v-row>
</div>
2019-10-26 23:41:45 +03:00
</template>
<script>
export default {
name: "DualCalibration",
2019-10-26 23:41:45 +03:00
methods: {
clearPoints() {
this.handleInputWithIndex("robotOffsetPoint", 0, this.$store.state.currentCameraIndex)
},
2019-10-26 23:41:45 +03:00
takePointA() {
this.handleInputWithIndex("robotOffsetPoint", 2, this.$store.state.currentCameraIndex)
2019-10-26 23:41:45 +03:00
},
takePointB() {
this.handleInputWithIndex("robotOffsetPoint", 3, this.$store.state.currentCameraIndex)
2019-10-26 23:41:45 +03:00
}
}
}
</script>
<style scoped>
</style>