Skip to content

Reopen map on user's last known location#2261

Merged
ArturoManzoli merged 4 commits intobluerobotics:masterfrom
ArturoManzoli:map-should-open-on-last-location
Feb 3, 2026
Merged

Reopen map on user's last known location#2261
ArturoManzoli merged 4 commits intobluerobotics:masterfrom
ArturoManzoli:map-should-open-on-last-location

Conversation

@ArturoManzoli
Copy link
Copy Markdown
Contributor

@ArturoManzoli ArturoManzoli commented Dec 1, 2025

  • Cockpit stores the user’s last viewed map location and restores it when reopening 'Flight Mode' or 'Mission Planning'.
  • Option to follow the vehicle is now stored on BlueOS

Closes #2260

@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch from 463c3fa to 6ee40f1 Compare December 1, 2025 15:50
Copy link
Copy Markdown
Contributor

@ES-Alexander ES-Alexander left a comment

Choose a reason for hiding this comment

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

This seems to work fine in both browser and electron - nice!

That said, it seems tied to the interface, rather than actually being based on the "user"'s details. Not sure if we want this synced to the vehicle (through the user), or leave it as each frontend stores the info it needs for this...

Curious on @rafaellehmkuhl's thoughts.


This definitely isn't critical enough to hold up stable, but if it's approved in time it's also maybe ok to include, as something akin to a bug fix?

@rafaellehmkuhl
Copy link
Copy Markdown
Member

This seems to work fine in both browser and electron - nice!

That said, it seems tied to the interface, rather than actually being based on the "user"'s details. Not sure if we want this synced to the vehicle (through the user), or leave it as each frontend stores the info it needs for this...

Curious on @rafaellehmkuhl's thoughts.

Also not completely sure, but I think it could make sense to tie it to the user. It's where they were.

What I'm asking myself right now is if this new behavior deals well with the current default "follow vehicle" behavior. I tried to use the PR but if the vehicle is connected it just goes there.

@ArturoManzoli @ES-Alexander any idea what should be the default behavior on each case?

@ArturoManzoli
Copy link
Copy Markdown
Contributor Author

ArturoManzoli commented Dec 10, 2025

Also not completely sure, but I think it could make sense to tie it to the user. It's where they were.

What I'm asking myself right now is if this new behavior deals well with the current default "follow vehicle" behavior. I tried to use the PR but if the vehicle is connected it just goes there.

@ArturoManzoli @ES-Alexander any idea what should be the default behavior on each case?

I think following the vehicle would be the priority whenever the mode is turned on.
Maybe we should store the "follow vehicle" option as user preference on BlueOS. As it is now, it would reset back to it on every boot

@rafaellehmkuhl
Copy link
Copy Markdown
Member

Also not completely sure, but I think it could make sense to tie it to the user. It's where they were.
What I'm asking myself right now is if this new behavior deals well with the current default "follow vehicle" behavior. I tried to use the PR but if the vehicle is connected it just goes there.
@ArturoManzoli @ES-Alexander any idea what should be the default behavior on each case?

I think following the vehicle would be the priority whenever the mode is turned on. Maybe we should store the "follow vehicle" option as user preference on BlueOS. As it is now, it would reset back to it on every boot

Maybe this should be a preference indeed. Go automatically to the vehicle position, home position or last map location. Sounds good. @ES-Alexander what do you think?

@ES-Alexander
Copy link
Copy Markdown
Contributor

I think following the vehicle would be the priority whenever the mode is turned on.
Maybe we should store the "follow vehicle" option as user preference on BlueOS. As it is now, it would reset back to it on every boot

Agreed - if the user has asked to follow the vehicle then we should do that until they ask to stop (ideally even across sessions) 👍

That said, I think it should be tied to a profile in a user, not the user at the top level, since they may have different preferences for how they operate different vehicle types.

As an edge case, I am curious what happens when follow vehicle mode is remaining on and the vehicle has no position (e.g. for a DVL ROV that hasn't had its origin and/or starting position set yet, or a boat that is turned on inside without a GPS lock). In those cases I think the behaviour we want is to reopen where they last were, so this PR could still apply even when follow mode is on.

@rafaellehmkuhl
Copy link
Copy Markdown
Member

@ArturoManzoli @ES-Alexander I believe we should discuss and agree on a solution to move forward with that one.

@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch from 6ee40f1 to d8df65f Compare January 22, 2026 20:10
Comment thread .gitignore Outdated
Comment on lines +14 to +15

src/libs/mavlink-json
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 should not be ignored.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

all fixed. Ready to review

@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch 2 times, most recently from 4764854 to 39a12fc Compare January 22, 2026 20:17
@ArturoManzoli ArturoManzoli marked this pull request as draft January 22, 2026 20:24
@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch from 39a12fc to d016f45 Compare January 23, 2026 14:04
@ArturoManzoli ArturoManzoli marked this pull request as ready for review January 23, 2026 14:04
Copy link
Copy Markdown
Member

@rafaellehmkuhl rafaellehmkuhl left a comment

Choose a reason for hiding this comment

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

Only minor things and we are ready to merge.

Comment thread src/components/widgets/Map.vue Outdated
Comment thread src/stores/mission.ts
Comment thread src/stores/mission.ts
Comment thread src/components/widgets/Map.vue Outdated
Signed-off-by: Arturo Manzoli <arturomanzoli@gmail.com>
@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch from d016f45 to e7efcbd Compare February 2, 2026 21:57
@ArturoManzoli
Copy link
Copy Markdown
Contributor Author

Only minor things and we are ready to merge.

All issues addressed!

Signed-off-by: Arturo Manzoli <arturomanzoli@gmail.com>
Signed-off-by: Arturo Manzoli <arturomanzoli@gmail.com>
Signed-off-by: Arturo Manzoli <arturomanzoli@gmail.com>
@ArturoManzoli ArturoManzoli force-pushed the map-should-open-on-last-location branch from e7efcbd to debd266 Compare February 3, 2026 19:28
@ArturoManzoli ArturoManzoli merged commit f3c9b80 into bluerobotics:master Feb 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maps should be opened at the last known location

3 participants