-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add waypoint config panel to mission planning #1523
Add waypoint config panel to mission planning #1523
Conversation
2d1b57d
to
ec4184e
Compare
Much better! This will be a lot easier to review! One thing: this seems to be rebased over master, not over the branch of #1469 (I can see that because the changes of #1469 are not here), but we can keep it this way as it will be easier to review, and rebase over master once we merge #1469. |
Signed-off-by: Arturo Manzoli <[email protected]>
ec4184e
to
89bbdb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial code review. Didn't test the changes extensively yet.
src/views/MissionPlanningView.vue
Outdated
if (selectedSurveyId.value === '') { | ||
contextMenuType.value = 'map' | ||
showContextMenu(e) | ||
} | ||
if (selectedSurveyId.value !== '') { | ||
showContextMenu(e) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This expression can be simplified since showContextMenu(e)
will always be called in the end.
emit('removeWaypoint', waypoint) | ||
} | ||
|
||
const availableFrames = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be typed using the AltitudeReferenceType
enum so we never leave one left.
><p class="ml-4 text-center text-[13px] font-normal"> | ||
{{ | ||
selectedWaypoint.id === 'home' | ||
? 'Home' | ||
: `Waypoint ${missionStore.getWaypointNumber(selectedWaypoint?.id as string)} | ||
parameters` | ||
}} | ||
</p></template | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those indentations can be better formatted.
src/views/MissionPlanningView.vue
Outdated
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" style="display: block;"> | ||
<circle cx="10" cy="10" r="9" fill="white" stroke="#3B82F6" stroke-width="2"/> | ||
<path d="M10 5V15M5 10H15" stroke="#3B82F6" stroke-width="2"/> | ||
</svg> | ||
`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to reindent.
src/views/MissionPlanningView.vue
Outdated
<div class="survey-vertex-icon"> | ||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="12" cy="12" r="5" fill="#3B82F6" stroke="white" stroke-width="2"/> | ||
</svg> | ||
<div class="delete-popup" style="display: none;"> | ||
<button class="delete-button"> | ||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M2 4h12M4 4v10a2 2 0 002 2h4a2 2 0 002-2V4M6 4V2h4v2" | ||
stroke="white" stroke-width="1.5" | ||
stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</button> | ||
<div class="survey-vertex-icon"> | ||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="12" cy="12" r="5" fill="#3B82F6" stroke="white" stroke-width="2"/> | ||
</svg> | ||
<div class="delete-popup" style="display: none;"> | ||
<button class="delete-button"> | ||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M2 4h12M4 4v10a2 2 0 002 2h4a2 2 0 002-2V4M6 4V2h4v2" | ||
stroke="white" stroke-width="1.5" | ||
stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
`, | ||
`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to reindent.
It looks like a lot of leftovers from the mission planning PR were readded here.
66c7035
to
a74bd4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kapture.2025-01-24.at.14.50.11.mp4
It appears like there's a bug in this side menu.
It seems like this patch is also breaking creation of simple path waypoints: Kapture.2025-01-24.at.14.52.01.mp4Edit: the problem happens after you click on a waypoint for the first time. |
a74bd4d
to
da7eab1
Compare
On last patch:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
da7eab1
to
79e15d6
Compare
Fixed! |
79e15d6
to
1b15fa4
Compare
…play Signed-off-by: Arturo Manzoli <[email protected]>
Signed-off-by: Arturo Manzoli <[email protected]>
1b15fa4
to
0a92c96
Compare
@rafaellehmkuhl
|
Working fine now! |
To be merged after #1469
Adds a starter version of the Waypoint config panel, as part of the "Extend survey to generic MAVLink commands" implementation
Screenshare.-.2025-01-03.9_07_46.AM.mp4