Skip to content

Commit

Permalink
Mission-planner: Fix upload and download timeout for long missions an…
Browse files Browse the repository at this point in the history
…d surveys

Signed-off-by: Arturo Manzoli <[email protected]>
  • Loading branch information
ArturoManzoli committed Oct 22, 2024
1 parent d95781a commit 30b0eeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/composables/settingsSyncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ export function useBlueOsStorage<T>(key: string, defaultValue: MaybeRef<T>): 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)

Expand Down
2 changes: 1 addition & 1 deletion src/libs/vehicle/ardupilot/ardupilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ export abstract class ArduPilotVehicle<Modes> extends Vehicle.AbstractVehicle<Mo
let lastSeqRequested = -1
while (missionAck === undefined && !timeoutReachedUpload) {
await sleep(10)
timeoutReachedUpload = new Date().getTime() - initTimeUpload > 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
Expand Down

0 comments on commit 30b0eeb

Please sign in to comment.