Esempio n. 1
0
    def meters_to_waypoint(self, POI):
        '''Construct a GPS location from a NED point.

        POI should be a dictionary, the returned value is a
        LocationGlobalRelative object.
        '''
        global_rel = relative_to_global(self.pilot.vehicle.home_location,
                                        POI['N'], POI['E'], POI['D'])
        return global_rel
Esempio n. 2
0
    def goto_relative(self, north, east, altitude_relative):
        '''Go to a NED location.

        This is basically just a wrapper for goto_waypoint to allow it to use
        NED coordinates. nort, ease and altitude_relative should be in meters.
        '''
        location = relative_to_global(self.vehicle.home_location, north, east,
                                      altitude_relative)
        return self.goto_waypoint(location)
    def goto_relative(self, north, east, altitude_relative):
        """Go to a NED location.

        This is basically just a wrapper for goto_waypoint to allow it to use
        NED coordinates. nort, ease and altitude_relative should be in meters.
        """
        location = relative_to_global(self.vehicle.home_location,
                                      north,
                                      east,
                                      altitude_relative)
        self.goto_waypoint(location)
    def meters_to_waypoint(self, POI):
        """Construct a GPS location from a NED point.

        POI should be a dictionary, the returned value is a
        LocationGlobalRelative object.
        """
        global_rel = relative_to_global(
                self.pilot.vehicle.home_location,
                POI['N'],
                POI['E'],
                POI['D']
        )
        return global_rel
 def meters_to_waypoint(self, POI):
     global_rel = relative_to_global(self.pilot.vehicle.home_location,
                                     POI['N'], POI['E'], POI['D'])
     return global_rel
 def goto_relative(self, north, east, altitude_relative):
     location = relative_to_global(self.vehicle.home_location, north, east,
                                   altitude_relative)
     self.goto_waypoint(location)