Skip to content

Commit a373f14

Browse files
committed
Map: remove set_secondary_vehicle_position
1 parent e60032d commit a373f14

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

MAVProxy/modules/mavproxy_map/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,20 +1057,6 @@ def cmd_clear(self, args):
10571057
self.map.add_object(mp_slipmap.SlipClearLayer(3))
10581058
self.have_vehicle = {}
10591059

1060-
def set_secondary_vehicle_position(self, m):
1061-
'''show 2nd vehicle on map'''
1062-
if m.get_type() != 'GLOBAL_POSITION_INT':
1063-
return
1064-
(lat, lon, heading) = (m.lat*1.0e-7, m.lon*1.0e-7, m.hdg*0.01)
1065-
if abs(lat) < 1.0e-3 and abs(lon) > 1.0e-3:
1066-
return
1067-
# hack for OBC2016
1068-
alt = self.module('terrain').ElevationModel.GetElevation(lat, lon)
1069-
agl = m.alt * 0.001 - alt
1070-
agl_s = str(int(agl)) + 'm'
1071-
self.create_vehicle_icon('VehiclePos2', 'blue', follow=False, vehicle_type='plane')
1072-
self.map.set_position('VehiclePos2', (lat, lon), rotation=heading, label=agl_s, colour=(0,255,255))
1073-
10741060
def update_vehicle_icon(self, name, vehicle, colour, m, display):
10751061
'''update display of a vehicle on the map. m is expected to store
10761062
location in lat/lng *1e7

0 commit comments

Comments
 (0)