Skip to content

Commit c5e9d1e

Browse files
committed
frontend: allow users to disable/enable autopilot with a manual board
1 parent d259201 commit c5e9d1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/frontend/src/views/Autopilot.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
Change board
8989
</v-btn>
9090
<v-btn
91-
v-if="settings.is_pirate_mode && board_supports_start_stop"
91+
v-if="settings.is_pirate_mode"
9292
class="ma-1"
9393
:block="$vuetify.breakpoint.xs"
9494
color="secondary"
@@ -98,7 +98,7 @@
9898
Start autopilot
9999
</v-btn>
100100
<v-btn
101-
v-if="settings.is_pirate_mode && board_supports_start_stop"
101+
v-if="settings.is_pirate_mode"
102102
class="ma-1"
103103
:block="$vuetify.breakpoint.xs"
104104
color="secondary"
@@ -174,9 +174,6 @@ export default Vue.extend({
174174
}
175175
},
176176
computed: {
177-
board_supports_start_stop(): boolean {
178-
return this.current_board?.name !== 'Manual'
179-
},
180177
board_supports_restart(): boolean {
181178
// this is a mavlink command, all boards should support it
182179
return true

0 commit comments

Comments
 (0)