ArduPilot / ArduPilot/ardupilot

Inconsistency in SITL JSON interface example

Open
#29,072 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

https://github.com/ArduPilot/ardupilot/blob/4088ab91c62d7ad1f4472df461061ff84ede1433/libraries/SITL/examples/JSON/C%2B%2B/minimal.cpp#L71-L76

In the example above the IMU is supposed to have a FRD (x-axis pointing forward, y-axis pointing right and z-axis pointing down) orientation. In this case the expected measured acceleration in the line above should be `9.81` rather than `-9.81`. Is this correct or did I understand this incorrectly?

Contributor guide

Open the contributing guide

Research direction

Inspect libraries/SITL/examples/JSON/C++/minimal.cpp at lines 71-76. Verify the FRD orientation convention against the acceleration value shown in the example and confirm whether the sign is inconsistent. Done means the example and its stated orientation agree, with the issue question resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, robotics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.