Skip to content
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

mavproxy_wp.py: remove ability to set home using waypoint upload #1319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions MAVProxy/modules/mavproxy_wp.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def commands(self):
"movemulti": self.cmd_movemulti,
"moverelhome": self.cmd_moverelhome,
'set': self.cmd_set,
'sethome': self.cmd_sethome,
'slope': self.cmd_slope,
'split': self.cmd_split,
"move": self.cmd_move, # handled in parent class
Expand Down Expand Up @@ -454,28 +453,6 @@ def wp_add_dls(self, args):
self.wploader.add(wp)
self.send_all_waypoints()

def cmd_sethome(self, args):
'''set home location from last map click'''
latlon = self.mpstate.click_location
if latlon is None:
print("No position available")
return
lat = float(latlon[0])
lon = float(latlon[1])
if self.wploader.count() == 0:
self.wploader.add_latlonalt(lat, lon, 0)
w = self.wploader.wp(0)
w.x = lat
w.y = lon
self.wploader.set(w, 0)
self.loading_waypoints = True
self.loading_waypoint_lasttime = time.time()
self.master.mav.mission_write_partial_list_send(
self.target_system,
self.target_component,
0, 0
)

def fix_jumps(self, idx, delta):
'''fix up jumps when we add/remove rows'''
numrows = self.wploader.count()
Expand Down
Loading