From 5d78ffb8f8b4880bc24ce080b44f2957f09dfa6c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 3 Aug 2023 10:26:56 +1000 Subject: [PATCH] map: added confirmation on set home and set origin --- MAVProxy/modules/mavproxy_map/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MAVProxy/modules/mavproxy_map/__init__.py b/MAVProxy/modules/mavproxy_map/__init__.py index 5dc980457c..efd94e6d44 100644 --- a/MAVProxy/modules/mavproxy_map/__init__.py +++ b/MAVProxy/modules/mavproxy_map/__init__.py @@ -85,10 +85,10 @@ def __init__(self, mpstate): self.default_popup = MPMenuSubMenu('Popup', items=[]) self.add_menu(MPMenuItem('Fly To', 'Fly To', '# guided ', handler=MPMenuCallTextDialog(title='Altitude (m)', default=self.mpstate.settings.guidedalt))) - self.add_menu(MPMenuItem('Set Home', 'Set Home', '# map sethomepos ')) - self.add_menu(MPMenuItem('Set Home (with height)', 'Set Home', '# map sethome ')) - self.add_menu(MPMenuItem('Set Origin', 'Set Origin', '# map setoriginpos ')) - self.add_menu(MPMenuItem('Set Origin (with height)', 'Set Origin', '# map setorigin ')) + self.add_menu(MPMenuItem('Set Home', 'Set Home', '# confirm "Set HOME?" map sethomepos ')) + self.add_menu(MPMenuItem('Set Home (with height)', 'Set Home', '# confirm "Set HOME with height?" map sethome ')) + self.add_menu(MPMenuItem('Set Origin', 'Set Origin', '# confirm "Set ORIGIN?" map setoriginpos ')) + self.add_menu(MPMenuItem('Set Origin (with height)', 'Set Origin', '# confirm "Set ORIGIN with height?" map setorigin ')) self.add_menu(MPMenuItem('Terrain Check', 'Terrain Check', '# terrain check')) self.add_menu(MPMenuItem('Show Position', 'Show Position', 'showPosition')) self.add_menu(MPMenuItem('Google Maps Link', 'Google Maps Link', 'printGoogleMapsLink'))