Skip to content

Commit

Permalink
[units] fixing unit definition for NOMINAL_HOVER_THROTTLE
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Jul 18, 2012
1 parent b3e07bb commit 66a5677
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
Expand Up @@ -182,7 +182,7 @@
<!-- BOOZ_SPEED_I_OF_F(1.5) * 20% -->
<define name="RC_CLIMB_DEAD_BAND" value ="160000"/>
<!-- NOMINAL_HOVER_THROTTLE sets a fixed value instead of the adaptive estimation -->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5"/-->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5" unit="%"/-->
</section>

<section name="GUIDANCE_H" prefix="GUIDANCE_H_">
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/examples/quadrotor_lisa_m_mkk.xml
Expand Up @@ -166,7 +166,7 @@
<!-- BOOZ_SPEED_I_OF_F(1.5) * 20% -->
<define name="RC_CLIMB_DEAD_BAND" value ="160000"/>
<!-- NOMINAL_HOVER_THROTTLE sets a fixed value instead of the adaptive estimation -->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5"/-->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5" unit="%"/-->
</section>

<section name="GUIDANCE_H" prefix="GUIDANCE_H_">
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/fraser_lisa_m_rotorcraft.xml
Expand Up @@ -193,7 +193,7 @@
<define name="RC_CLIMB_COEF" value ="163"/>
<!-- BOOZ_SPEED_I_OF_F(1.5) * 20% -->
<define name="RC_CLIMB_DEAD_BAND" value ="160000"/>
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5"/-->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5" unit="%"/-->
</section>

<section name="GUIDANCE_H" prefix="GUIDANCE_H_">
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/mm/rotor/quadrotor_lisa_l_mkk.xml
Expand Up @@ -205,7 +205,7 @@
<define name="RC_CLIMB_COEF" value ="163"/>
<!-- BOOZ_SPEED_I_OF_F(1.5) * 20% -->
<define name="RC_CLIMB_DEAD_BAND" value ="160000"/>
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5"/-->
<!--define name="NOMINAL_HOVER_THROTTLE" value="0.5" unit="%"/-->
</section>

<section name="GUIDANCE_H" prefix="GUIDANCE_H_">
Expand Down
2 changes: 1 addition & 1 deletion conf/settings/control/rotorcraft_guidance.xml
Expand Up @@ -7,7 +7,7 @@
<dl_setting var="guidance_v_kp" min="0" step="1" max="600" module="guidance/guidance_v" shortname="kp" param="GUIDANCE_V_HOVER_KP"/>
<dl_setting var="guidance_v_kd" min="0" step="1" max="600" module="guidance/guidance_v" shortname="kd" param="GUIDANCE_V_HOVER_KD"/>
<dl_setting var="guidance_v_ki" min="0" step="1" max="300" module="guidance/guidance_v" shortname="ki" handler="SetKi" param="GUIDANCE_V_HOVER_KI"/>
<dl_setting var="guidance_v_nominal_throttle" min="0.1" step="0.01" max="0.9" module="guidance/guidance_v" shortname="nominal_throttle" handler="SetNominalHoverThrottle" alt_unit="%" alt_unit_coef="0.000104167" param="GUIDANCE_V_NOMINAL_HOVER_THROTTLE"/>
<dl_setting var="guidance_v_nominal_throttle" min="0.1" step="0.01" max="0.9" module="guidance/guidance_v" shortname="nominal_throttle" handler="SetNominalHoverThrottle" unit="pprz" alt_unit="%" param="GUIDANCE_V_NOMINAL_HOVER_THROTTLE"/>
<dl_setting var="guidance_v_z_sp" min="-5" step="0.5" max="3" module="guidance/guidance_v" shortname="sp" unit="2e-8m" alt_unit="m" alt_unit_coef="0.00390625"/>
<dl_setting var="ins_vf_realign" min="0" step="1" max="1" module="subsystems/ins" shortname="vf_realign" values="OFF|ON"/>
</dl_settings>
Expand Down
2 changes: 2 additions & 0 deletions conf/units.xml
Expand Up @@ -15,4 +15,6 @@
<unit from="mm/s" to="m/s" coef="0.001"/>
<unit from="decideg" to="deg" coef="0.1"/>
<unit from="deg" to="decideg" coef="10."/>
<unit from="pprz" to="%" coef="0.000104167"/>
<unit from="%" to="pprz" coef="9600."/>
</units>

0 comments on commit 66a5677

Please sign in to comment.