mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
RTH: Discontinue ReturnHome smart shot
The ReturnHome smart shot presents a number of reliability and safety issues. As such, its use is being discontinued and we're using ArduCopter RTL mode instead. If anything still happens to call the return home smart shot, it will immediately change to the ArduCopter RTL mode.
This commit is contained in:
parent
276efaa94a
commit
879f8352a3
@ -76,6 +76,13 @@ class returnHomeShot():
|
|||||||
# assign the shotManager object
|
# assign the shotManager object
|
||||||
self.shotmgr = shotmgr
|
self.shotmgr = shotmgr
|
||||||
|
|
||||||
|
# Exit the shot and use RTL Mode
|
||||||
|
self.vehicle.mode = VehicleMode("RTL")
|
||||||
|
self.shotmgr.rcMgr.enableRemapping( false )
|
||||||
|
return
|
||||||
|
|
||||||
|
##########################################################
|
||||||
|
|
||||||
# grab a copy of home
|
# grab a copy of home
|
||||||
self.homeLocation = self.shotmgr.getHomeLocation()
|
self.homeLocation = self.shotmgr.getHomeLocation()
|
||||||
|
|
||||||
@ -253,7 +260,7 @@ class returnHomeShot():
|
|||||||
def handleButton(self, button, event):
|
def handleButton(self, button, event):
|
||||||
|
|
||||||
# any Pause button press or release should get out of RTL
|
# any Pause button press or release should get out of RTL
|
||||||
if button == btn_msg.ButtonLoiter and event == btn_msg.Press:
|
if button == btn_msg.ButtonLoiter and event == btn_msg.ClickRelease:
|
||||||
#exit to fly
|
#exit to fly
|
||||||
self.shotmgr.enterShot(shots.APP_SHOT_NONE)
|
self.shotmgr.enterShot(shots.APP_SHOT_NONE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user