I have updated the program to Aircraft Coordinate System. It is now posible to use the data from PX4 and ArduPilot IMU. However, I don’t have access to a drone with PX4 autopilot or ArduPilot.
So, I’m asking for some feedback.
These are the instructions I have for the README file on GitHub…
"How to use the Virtual Plumb Bob software:
Measure distance from the motors M1 and M3 in meters
Measure the distance from motors M1 and M4 in meters
The done will need to be connected to the QGC wirelessly.
The drone will need to hung from the M1 and M3 motors. The drone must be free and motionless during data collection.


Collect IMU accelerometer data from each motor position. xacc, yacc , and zacc
Input data into the software.
EXAMPLE OF IMU DATA FROM QGC
This software version uses the Aircraft Coordinate System. However, the origin is at the geometric center of the X frame motors. The CoM location given is the distance from the geometric center.
The CoM is the center of all rotation of the drone. The with provided CoM location, the true distance from each motor to the CoM can be calculated. And the true and real amount of torque each motor provides can now be calculate.
In addition, if the location of the IMU is known, the distance from the CoM to the IMU can be calculated
PX4 autopilot: users should go to their PX4 Guide Hardware Selection & Setup tab and look in Actuator Allocation. Scroll down the page and review the Motor Position Coordinate System information. Then scroll to the Motor Geometry: Multicopper and follow the instructions using the data provided by the Virtual Plumb Bob software.
ArduPilot: At this time, it is unknown, by the author, where this data is used."