Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"APi call was not received, entering hover mode for safety" when using moveToPositionAsync in AirSim UE5.4 #118

Open
Wayneless opened this issue Dec 4, 2024 · 1 comment

Comments

@Wayneless
Copy link

Hi, I am currently using the AirSim Colosseum branch for UE5.4

run codes below:

import airsim

client = airsim.MultirotorClient()
client.enableApiControl(True)

client.armDisarm(True)

client.takeoffAsync().join()

client.moveToPositionAsync(0, 0, -100, 5).join()

client.moveToPositionAsync(20, 0, -100, 5).join()
client.moveToPositionAsync(20, 20, -100, 5).join()
client.moveToPositionAsync(0, 20, -100, 5).join()
client.moveToPositionAsync(0, 0, -100, 5).join()

client.landAsync().join()

client.armDisarm(False)

client.enableApiControl(False)

The drone successfully takes off, but enters the hover mode with the message:
"API call was not received, entering hover mode for safety"
The flight route specified in the code was not completed.

@ThiagoMiklan
Copy link

ThiagoMiklan commented Dec 8, 2024

Hello. I was experiencing the same issue as you in Unreal Engine version 5.4. Indeed, the drone would take off and then immediately fall due to a lack of calls, showing the error 'API call was not received, entering hover mode for safety.' What I did was download the version from https://github.com/CodexLabsLLC/Colosseum/releases/tag/v2.1.0 build it (selecting 5.2 in the colosseum build), and then build my project in version 5.2 instead. In my case, the functionality gap between 5.4 and 5.2 is acceptable. I tested it with your code and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants