AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Initial NED position is always (0,0,0)

Open SeaingAnt opened this issue 3 years ago • 1 comments

Bug report

  • AirSim Version/#commit: 6688d27d3712c2a9c824ababec7a2703475b6628
  • UE/Unity version: Unity 2021.3.11f1
  • autopilot version: px4 1.11.3
  • OS Version: Ubuntu 22.04

What's the issue you encountered?

The initial states, given in the settings.json file with x,y, and z coordinates, are always initialized to 0,0,0 no matter what the settings are. The positions are available in qgroundcontrol as local position ned with the analyze tool

Settings

{
    "SettingsVersion": 1.2,
    "SimMode": "Multirotor",
    "ClockType": "SteppableClock",
    "OriginGeopoint": {
    "Latitude": 47.641468,
    "Longitude": -122.140165,
    "Altitude": 1
    },
    "Vehicles": {
        "PX4": {
            "VehicleType": "PX4Multirotor",
            "UseSerial": false,
            "LockStep": true,
            "UseTcp": true,
            "TcpPort": 4560,
            "ControlPortLocal": 14640,
            "ControlPortRemote": 14580,
            "X": 0.0, "Y": -1.0, "Z": 0.0,
            "Sensors":{
                "Barometer":{
                    "SensorType": 1,
                    "Enabled": true,
                    "PressureFactorSigma": 0.0001825
                }
            },
            "Parameters": {
                "NAV_RCL_ACT": 0,
                "NAV_DLL_ACT": 0,
                "COM_OBL_ACT": 1,
                "LPE_LAT": 47.641478,
                "LPE_LON": -122.140165
            }
          },
          "PX41": {
            "VehicleType": "PX4Multirotor",
            "UseSerial": false,
            "LockStep": true,
            "UseTcp": true,
            "TcpPort": 4561,
            "ControlPortLocal": 14641,
            "ControlPortRemote": 14581,
            "X": 1.0, "Y": -1.0, "Z": 0.0,
            "Sensors":{
                "Barometer":{
                    "SensorType": 1,
                    "Enabled": true,
                    "PressureFactorSigma": 0.0001825
                }
            },
            "Parameters": {
                "NAV_RCL_ACT": 0,
                "NAV_DLL_ACT": 0,
                "COM_OBL_ACT": 1,
                "LPE_LAT": 47.641458,
                "LPE_LON": -122.140165
            }
          },
          "PX42": {
            "VehicleType": "PX4Multirotor",
            "UseSerial": false,
            "LockStep": true,
            "UseTcp": true,
            "TcpPort": 4562,
            "ControlPortLocal": 14642,
            "ControlPortRemote": 14582,
            "X": -1.0, "Y": -1.0, "Z": 0.0,
            "Sensors":{
                "Barometer":{
                    "SensorType": 1,
                    "Enabled": true,
                    "PressureFactorSigma": 0.0001825
                }
            },
            "Parameters": {
                "NAV_RCL_ACT": 0,
                "NAV_DLL_ACT": 0,
                "COM_OBL_ACT": 1,
                "LPE_LAT": 47.641448,
                "LPE_LON": -122.140165
            }
          }
    }
}

How can the issue be reproduced?

  1. open UnityDemo with px4 sitl
  2. read the position in qgroundcontrol

Include full error message in text form

SeaingAnt avatar Oct 13 '22 15:10 SeaingAnt

Hello, I reported an error when compiling, can not find -lc++fs: there is no file or directory, how do you compile it?

Looking forward to your reply.

chenfei8888 avatar Oct 15 '23 13:10 chenfei8888