Esempio n. 1
0
 def get_frame(self):
     if self.use_simulator:
         veh_pos = PositionVector.get_from_location(self.vehicle.location.global_relative_frame)
         frame = balloon_sim.get_simulated_frame(veh_pos, self.vehicle.attitude.roll, self.vehicle.attitude.pitch, self.vehicle.attitude.yaw)
     else:
         frame = balloon_video.get_image()
     return frame
 def get_frame(self):
     if self.use_simulator:
         veh_pos = PositionVector.get_from_location(self.vehicle.location)
         frame = balloon_sim.get_simulated_frame(veh_pos, self.vehicle.attitude.roll, self.vehicle.attitude.pitch, self.vehicle.attitude.yaw)
     else:
         frame = balloon_video.get_image()
     return frame