-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
I've been trying to get PX4 SITL working with Airsim using Unity and have encountered an issue with gyro and accelerometer timeouts happening as soon as the sim is connected (see attached image). I'm a bit stumped by this so thought I would ask here. I'm using the latest Airsim master branch and PX4 firmware v1.10.1, both are running on a Windows VM, cygwin toolchain for executing px4 sitl.
From what I gathered this should work, unless I'm missing something as most of the information is all related to Unreal and I'm unsure if SITL is supported for Unity.
I get the followings messages reported by Airsim in the Unity log file (apologies for the vehicle name being SimpleFlight, I've put this in place to work around an issue in the settings read in Unity which has SimpleFlight hardcoded as the name)
Connected to SITL over TCP. 30 Vehicle=SimpleFlight
Connecting to PX4 Control UDP port 14580, local IP 127.0.0.1, remote IP... 30 Vehicle=SimpleFlight
Ground control connected over UDP. 30 Vehicle=SimpleFlight
Enabling lockstep mode 30 Vehicle=SimpleFlight
Got GPS lock 30 Vehicle=SimpleFlight
Accel #0 fail: TIMEOUT! 30 Vehicle=SimpleFlight
Gyro #0 fail: TIMEOUT! 30 Vehicle=SimpleFlight
Settings are:
{
"SimMode": "Multirotor",
"SettingsVersion": 1.2,
"ApiServerPort": 5000,
"Vehicles": {
"SimpleFlight":{
"VehicleType": "PX4Multirotor",
"UseSerial": false,
"UseTcp": true,
"TcpPort": 4560,
"ControlPort": 14580,
"Parameters": {
"NAV_RCL_ACT": 0,
"NAV_DLL_ACT": 0,
"LPE_LAT": 51.450711,
"LPE_LON": -2.603829,
"COM_OBL_ACT": 1
}
}
}
}
