Skip to content

Commit 9136a60

Browse files
hamishwilleemrpollo
authored andcommitted
adds notification whenever home location is changed
1 parent fac629c commit 9136a60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dronekit/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,7 @@ def listener(self, name, msg):
12071207
@self.on_message(['HOME_POSITION'])
12081208
def listener(self, name, msg):
12091209
self._home_location = LocationGlobal(msg.latitude/1.0e7, msg.longitude/1.0e7, msg.altitude/1000.0);
1210+
self.notify_attribute_listeners('home_location', self.home_location, cache=True)
12101211

12111212
@self.on_message(['WAYPOINT', 'MISSION_ITEM'])
12121213
def listener(self, name, msg):

0 commit comments

Comments
 (0)