ArduPilot:master
← IamPete1:motor_layout_json
opened 10:35PM - 18 May 23 UTC
This makes a json file such as this:
[MotorsJSON.txt](https://github.com/Ard…uPilot/ardupilot/files/11511969/MotorsJSON.txt)
This allows tools to give extra info on motor test pages or frame selection, only matrix types currently but we could others manualy.
A example wiki page from @yuri-rage
https://discuss.ardupilot.org/t/copter-wiki-motor-diagram-overhaul/101046/24?u=iampete
My Mission planner attempt:
https://github.com/ArduPilot/MissionPlanner/pull/3043
To get json just run example and dump to file, `./build/linux/examples/AP_Motors_test p > test.json`
This is a snippet:
```
{
"Version": "AP_Motors library test ver 1.1",
"layouts": [
{
"Class": 1,
"ClassName": "QUAD",
"Type": 0,
"TypeName": "PLUS",
"motors": [
{
"Number": 1,
"TestOrder": 2,
"Rotation": "CCW",
"Roll": -0.5000,
"Pitch": -0.0000
},
{
"Number": 2,
"TestOrder": 4,
"Rotation": "CCW",
"Roll": 0.5000,
"Pitch": -0.0000
},
{
"Number": 3,
"TestOrder": 1,
"Rotation": "CW",
"Roll": -0.0000,
"Pitch": 0.5000
},
{
"Number": 4,
"TestOrder": 3,
"Rotation": "CW",
"Roll": 0.0000,
"Pitch": -0.5000
}
]
},
]
}
```