From 30b0eeb0fff8b93c34fda88773cb6dd8efe1320b Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Tue, 22 Oct 2024 16:24:26 -0300 Subject: [PATCH] Mission-planner: Fix upload and download timeout for long missions and surveys Signed-off-by: Arturo Manzoli --- src/composables/settingsSyncer.ts | 4 ++-- src/libs/vehicle/ardupilot/ardupilot.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/settingsSyncer.ts b/src/composables/settingsSyncer.ts index da705c591..08c4f19a6 100644 --- a/src/composables/settingsSyncer.ts +++ b/src/composables/settingsSyncer.ts @@ -136,11 +136,11 @@ export function useBlueOsStorage(key: string, defaultValue: MaybeRef): Rem try { await setKeyDataOnCockpitVehicleStorage(vehicleAddress, `settings/${username}/${key}`, newValue) const message = `Success updating '${key}' on BlueOS.` - openSnackbar({ message, duration: 3000, variant: 'success' }) + openSnackbar({ message, duration: 3000, variant: 'success', closeButton: true }) console.info(message) } catch (fetchError) { const message = `Failed updating '${key}' on BlueOS. Will keep trying.` - openSnackbar({ message, duration: 3000, variant: 'error' }) + openSnackbar({ message, duration: 3000, variant: 'error', closeButton: true }) console.error(message) console.error(fetchError) diff --git a/src/libs/vehicle/ardupilot/ardupilot.ts b/src/libs/vehicle/ardupilot/ardupilot.ts index 2653148c8..2e8269425 100644 --- a/src/libs/vehicle/ardupilot/ardupilot.ts +++ b/src/libs/vehicle/ardupilot/ardupilot.ts @@ -1149,7 +1149,7 @@ export abstract class ArduPilotVehicle extends Vehicle.AbstractVehicle 10000 + timeoutReachedUpload = new Date().getTime() - initTimeUpload > 50000 const lastMissionItemRequestMessage = this._messages.get(MAVLinkType.MISSION_REQUEST) || this._messages.get(MAVLinkType.MISSION_REQUEST_INT) if (lastMissionItemRequestMessage === undefined) continue