1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

[OP-724] Provide generic gimbal type

This commit is contained in:
Oleg Semyonov 2012-11-29 18:00:46 +02:00
parent 8adc2abd77
commit cc98962c36
3 changed files with 6 additions and 2 deletions

View File

@ -244,6 +244,9 @@ void applyFeedForward(uint8_t index, float dT, float *attitude, CameraStabSettin
float gimbalTypeCorrection = 1.0f;
switch (cameraStab->GimbalType) {
case CAMERASTABSETTINGS_GIMBALTYPE_GENERIC:
// no correction
break;
case CAMERASTABSETTINGS_GIMBALTYPE_YAWROLLPITCH:
if (index == CAMERASTABSETTINGS_INPUT_ROLL) {
float pitch;

View File

@ -1300,7 +1300,8 @@ Range: 0-50ms, default is 5.</string>
<property name="toolTip">
<string>Gimbal type
Used to limit feed forward acceleration at extreme angles.</string>
Used to limit feed forward acceleration at extreme angles.
Generic type provides no limit.</string>
</property>
<property name="objrelation" stdset="0">
<stringlist>

View File

@ -8,7 +8,7 @@
<field name="MaxAxisLockRate" units="deg/s" type="float" elements="1" defaultvalue="1"/>
<field name="OutputRange" units="deg" type="uint8" elementnames="Roll,Pitch,Yaw" defaultvalue="20"/>
<field name="ResponseTime" units="ms" type="uint8" elementnames="Roll,Pitch,Yaw" defaultvalue="0"/>
<field name="GimbalType" units="" type="enum" elements="1" options="Yaw-Roll-Pitch,Yaw-Pitch-Roll" defaultvalue="Yaw-Roll-Pitch"/>
<field name="GimbalType" units="" type="enum" elements="1" options="Generic,Yaw-Roll-Pitch,Yaw-Pitch-Roll" defaultvalue="Generic"/>
<field name="FeedForward" units="" type="uint8" elementnames="Roll,Pitch,Yaw" defaultvalue="0"/>
<field name="MaxAccel" units="units/sec" type="uint16" elements="1" defaultvalue="500"/>
<field name="AccelTime" units="ms" type="uint8" elementnames="Roll,Pitch,Yaw" defaultvalue="5"/>