Skip to content

Commit

Permalink
Merge pull request #4338 from zimmy87/fix-4304
Browse files Browse the repository at this point in the history
deprecate moveByAngleZAsync and moveByAngleThrottleAsync
  • Loading branch information
Jonathan authored Feb 2, 2022
2 parents 0ba43c8 + f11d633 commit 8057725
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PythonClient/airsim/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,12 @@ def moveByVelocityZBodyFrameAsync(self, vx, vy, z, duration, drivetrain = Drivet
return self.client.call_async('moveByVelocityZBodyFrame', vx, vy, z, duration, drivetrain, yaw_mode, vehicle_name)

def moveByAngleZAsync(self, pitch, roll, z, yaw, duration, vehicle_name = ''):
return self.client.call_async('moveByAngleZ', pitch, roll, z, yaw, duration, vehicle_name)
logging.warning("moveByAngleZAsync API is deprecated, use moveByRollPitchYawZAsync() API instead")
return self.client.call_async('moveByRollPitchYawZ', roll, -pitch, -yaw, z, duration, vehicle_name)

def moveByAngleThrottleAsync(self, pitch, roll, throttle, yaw_rate, duration, vehicle_name = ''):
return self.client.call_async('moveByAngleThrottle', pitch, roll, throttle, yaw_rate, duration, vehicle_name)
logging.warning("moveByAngleThrottleAsync API is deprecated, use moveByRollPitchYawrateThrottleAsync() API instead")
return self.client.call_async('moveByRollPitchYawrateThrottle', roll, -pitch, -yaw_rate, throttle, duration, vehicle_name)

def moveByVelocityAsync(self, vx, vy, vz, duration, drivetrain = DrivetrainType.MaxDegreeOfFreedom, yaw_mode = YawMode(), vehicle_name = ''):
"""
Expand Down

0 comments on commit 8057725

Please sign in to comment.