Skip to content

Warn user about auto-arming vehicle#2065

Merged
ArturoManzoli merged 1 commit into
bluerobotics:masterfrom
ArturoManzoli:608-warn-about-auto-arm-on-play
Aug 22, 2025
Merged

Warn user about auto-arming vehicle#2065
ArturoManzoli merged 1 commit into
bluerobotics:masterfrom
ArturoManzoli:608-warn-about-auto-arm-on-play

Conversation

@ArturoManzoli

@ArturoManzoli ArturoManzoli commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

Relates to #22

  • Add a auto-arm warning before executing a mission;
  • Add a custom checklist for pre-flight checks as described on Support pre-launch/maintenance checklists #22;
  • Can be permanently dismissed; re-enabled on the mission configuration module;
image image

Closes #608

@ArturoManzoli ArturoManzoli force-pushed the 608-warn-about-auto-arm-on-play branch 3 times, most recently from 6d97c75 to ddcd025 Compare August 20, 2025 16:22

@rafaellehmkuhl rafaellehmkuhl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working fine. Just some code minors to take a look into.

Comment thread src/components/widgets/Map.vue Outdated

// Allow executing missions
const executeMissionOnVehicle = async (): Promise<void> => {
if (missionStore.showChecklistBeforeArm === true) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the === true there.

if (missionStore.showChecklistBeforeArm) {

Comment on lines +868 to +869
try {
await vehicleStore.startMission()
} catch (error) {
openSnackbar({ message: 'Failed to start mission.', variant: 'error' })
}
return
}

@rafaellehmkuhl rafaellehmkuhl Aug 21, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is duplicating the one inside the handleMissionChecklistConfirmed method. Better to just do a handleMissionChecklistConfirmed(true) here.

Ideally, so it doesn't get out of context, "handleMissionChecklistConfirmed" should be renamed to "tryToStartMission", without any arguments, and in the @confirmed directive just use the following:

    @confirmed="tryToStartMission"

as the @confirm will only be executed when the user clicks to go.

Them you can reuse tryToStartMission() here.

Signed-off-by: Arturo Manzoli <arturomanzoli@gmail.com>
@ArturoManzoli ArturoManzoli force-pushed the 608-warn-about-auto-arm-on-play branch from ddcd025 to 0eef9bc Compare August 22, 2025 09:42

@rafaellehmkuhl rafaellehmkuhl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working perfectly!
Nice feature!

@ArturoManzoli ArturoManzoli merged commit ce60727 into bluerobotics:master Aug 22, 2025
12 checks passed
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-needed Change needs to be documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missions: Warn about auto-arm when pressing play

3 participants