Hi, I want that my drone follows a path. I use moveOnPathAsync() to give to the drone the path to follow. However, it has a strange behaviour, when the drone is close enough to a point of the path, it goes up and and come back. It seems like it is not able to turn right or turn left. My code is exacly the following:
data is a list with the point to follow. In the following picture, the red point are the point to achieve, while the blue line is the trajectory of the drone. (In this case, I gave only 5 points, for this reason the drone stops to the fifth point)
The trajectory that I get is the following:
What is it wrong? I tried also to change parameters of moveOnPathAsync, for example I tried to put airsim.DrivetrainType.ForwardOnly, but nothing change
Hi, I want that my drone follows a path. I use moveOnPathAsync() to give to the drone the path to follow. However, it has a strange behaviour, when the drone is close enough to a point of the path, it goes up and and come back. It seems like it is not able to turn right or turn left. My code is exacly the following:
client.moveOnPathAsync(path=data, velocity=14, time_sec=196, airsim.DrivetrainType.MaxDegreeOfFreedom, airsim.YawMode(False,0), lookahead=-1, adaptive_lookahead=0).join()
The trajectory that I get is the following:
What is it wrong? I tried also to change parameters of moveOnPathAsync, for example I tried to put airsim.DrivetrainType.ForwardOnly, but nothing change