Skip to content

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

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

Open
SeaingAnt opened this issue Oct 13, 2022 · 1 comment
Open

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

SeaingAnt opened this issue Oct 13, 2022 · 1 comment

Comments

@SeaingAnt
Copy link

SeaingAnt commented Oct 13, 2022

Bug report

  • AirSim Version/#commit: 6688d27
  • 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

@chenfei8888
Copy link

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.

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