@@ -122,7 +122,7 @@ import OpenPilotBanner from '@/assets/img/banners/OpenPilot.svg'
122122import PX4Banner from ' @/assets/img/banners/PX4.svg'
123123import * as AutopilotManager from ' @/components/autopilot/AutopilotManagerUpdater'
124124import {
125- fetchAvailableBoards , fetchCurrentBoard , fetchFirmwareInfo , fetchVehicleType ,
125+ fetchAvailableBoards , fetchCurrentBoard , fetchFirmwareInfo , fetchFirmwareVehicleType , fetchVehicleType ,
126126} from ' @/components/autopilot/AutopilotManagerUpdater'
127127import AutopilotSerialConfiguration from ' @/components/autopilot/AutopilotSerialConfiguration.vue'
128128import BoardChangeDialog from ' @/components/autopilot/BoardChangeDialog.vue'
@@ -157,6 +157,7 @@ export default Vue.extend({
157157 fetch_current_board_task: new OneMoreTime ({ delay: 5000 , disposeWith: this }),
158158 fetch_firmware_info_task: new OneMoreTime ({ delay: 5000 , disposeWith: this }),
159159 fetch_vehicle_type_task: new OneMoreTime ({ delay: 5000 , disposeWith: this }),
160+ fetch_firmware_vehicle_type_task: new OneMoreTime ({ delay: 5000 , disposeWith: this }),
160161 }
161162 },
162163 computed: {
@@ -171,7 +172,7 @@ export default Vue.extend({
171172 Manufacturer: this .current_board ?.manufacturer ?? ' Unknown' ,
172173 ' Mavlink platform' : this .current_board ?.platform ?? ' Unknown' ,
173174 ' Firmware version' : version ,
174- ' Vehicle type' : this .vehicle_type ?? ' Unknown' ,
175+ ' Vehicle type' : ` ${ this .vehicle_type ?? ' Unknown' } (${ this . firmware_vehicle_type ?? ' Unknown ' }) ` ,
175176 }
176177
177178 if (this .current_board ?.path ) {
@@ -206,6 +207,9 @@ export default Vue.extend({
206207 firmware_info(): FirmwareInfo | null {
207208 return autopilot .firmware_info
208209 },
210+ firmware_vehicle_type(): string | null {
211+ return autopilot .firmware_vehicle_type
212+ },
209213 vehicle_type(): string | null {
210214 return autopilot .vehicle_type
211215 },
@@ -221,6 +225,7 @@ export default Vue.extend({
221225 this .fetch_current_board_task .setAction (fetchCurrentBoard )
222226 this .fetch_firmware_info_task .setAction (fetchFirmwareInfo )
223227 this .fetch_vehicle_type_task .setAction (fetchVehicleType )
228+ this .fetch_firmware_vehicle_type_task .setAction (fetchFirmwareVehicleType )
224229 },
225230 methods: {
226231 async enable_wizard(): Promise <void > {
0 commit comments