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:
parent
8adc2abd77
commit
cc98962c36
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user