Skip to content

Commit a6c306d

Browse files
committed
bugfix: Send ball placement command with "place ball" button
1 parent 9945a63 commit a6c306d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/common/TeamSelection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<b-form-group :label="label" label-cols-horizontal>
33
<b-form-radio-group id="select-team" v-model="model.team" buttons>
4-
<b-form-radio value="Yellow">Yellow</b-form-radio>
5-
<b-form-radio value="Blue">Blue</b-form-radio>
4+
<b-form-radio value="YELLOW">Yellow</b-form-radio>
5+
<b-form-radio value="BLUE">Blue</b-form-radio>
66
</b-form-radio-group>
77
</b-form-group>
88
</template>

src/components/manual-control/PlaceBall.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import TeamSelection from "../common/TeamSelection";
1616
import {convertStringLocation} from "../../refereeState";
1717
import {isNumeric} from "../../util";
18-
import {submitChange} from "../../submit";
18+
import {submitChange, submitNewCommand} from "../../submit";
1919
2020
export default {
2121
name: "PlaceBall",
@@ -40,11 +40,13 @@
4040
},
4141
methods: {
4242
sendEvent: function () {
43+
console.log('place ' + this.model.team)
4344
submitChange({
4445
setBallPlacementPos: {
4546
pos: convertStringLocation(this.model.location)
4647
}
4748
});
49+
submitNewCommand('BALL_PLACEMENT', this.model.team);
4850
this.$root.$emit('bv::hide::modal', 'place-ball-modal');
4951
}
5052
}

0 commit comments

Comments
 (0)