mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Added body-frame acceleration to ground truth UAVO and to flight simulator output.
Conflicts: shared/uavobjectdefinition/groundtruth.xml
This commit is contained in:
parent
433d723251
commit
5e785d4524
@ -431,6 +431,10 @@ void Simulator::updateUAVOs(Output2Hardware out){
|
||||
GroundTruth::DataFields groundTruthData;
|
||||
groundTruthData = groundTruth->getData();
|
||||
|
||||
groundTruthData.AccelerationXYZ[0]=out.accX;
|
||||
groundTruthData.AccelerationXYZ[1]=out.accY;
|
||||
groundTruthData.AccelerationXYZ[2]=out.accZ;
|
||||
|
||||
groundTruthData.AngularRates[0]=out.rollRate;
|
||||
groundTruthData.AngularRates[1]=out.pitchRate;
|
||||
groundTruthData.AngularRates[2]=out.yawRate;
|
||||
|
@ -1,8 +1,9 @@
|
||||
<xml>
|
||||
<object name="GroundTruth" singleinstance="true" settings="false">
|
||||
<description>The updated Attitude estimation from @ref AHRSCommsModule.</description>
|
||||
<description>Ground truth data output by a simulator.</description>
|
||||
<field name="AccelerationXYZ" units="m/s^2" type="float" elements="3"/>
|
||||
<field name="PositionNED" units="m" type="float" elements="3"/>
|
||||
<field name="VelocityNED" units="m" type="float" elements="3"/>
|
||||
<field name="VelocityNED" units="m/s" type="float" elements="3"/>
|
||||
<field name="RPY" units="deg" type="float" elements="3"/>
|
||||
<field name="AngularRates" units="deg/s" type="float" elements="3"/>
|
||||
<field name="TrueAirspeed" units="m/s" type="float" elements="1"/>
|
||||
|
Loading…
Reference in New Issue
Block a user