Files
PhotonVision/chameleon-client/src/components/OutputTab/SingleCalibration.vue

33 lines
832 B
Vue
Raw Normal View History

2019-10-26 23:41:45 +03:00
<template>
<div>
<v-row align="center" justify="start">
<v-col style="padding-right:0" :cols="3">
<v-btn small color="#4baf62" @click="takePoint">Take Point</v-btn>
</v-col>
<v-col>
<v-btn small @click="clearPoint" color="yellow darken-3">Clear Point</v-btn>
</v-col>
</v-row>
</div>
</template>
<script>
export default {
name: "SingleCalibration",
props: ['rawPoint'],
2019-10-29 23:58:06 +02:00
methods: {
clearPoint() {
this.handleInput('point', [0, 0]);
this.$emit('update');
2019-10-26 23:41:45 +03:00
},
2019-10-29 23:58:06 +02:00
takePoint() {
this.handleInput('point', this.rawPoint);
this.$emit('update');
2019-10-26 23:41:45 +03:00
}
}
}
</script>
<style scoped>
</style>