mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
[conf][joystick] update some joysticks with kill_throttle examples
This commit is contained in:
@@ -40,11 +40,11 @@ It has 8 buttons.
|
||||
<button index="3" name="b_yellow"/>
|
||||
<button index="4" name="b_ltb"/>
|
||||
<button index="5" name="b_rtb"/>
|
||||
<button index="6" name="b_start"/>
|
||||
<button index="7" name="b7"/>
|
||||
<button index="6" name="b_back"/>
|
||||
<button index="7" name="b_start"/>
|
||||
<button index="8" name="b8"/>
|
||||
<button index="9" name="b9"/>
|
||||
<button index="10" name="b_back"/>
|
||||
<button index="10" name="b10"/>
|
||||
</input>
|
||||
|
||||
<variables>
|
||||
@@ -108,6 +108,17 @@ It has 8 buttons.
|
||||
</message>
|
||||
-->
|
||||
|
||||
<!-- resurrect throttle on start button -->
|
||||
<message class="ground" name="DL_SETTING" on_event="b_start">
|
||||
<field name="index" value="IndexOfSetting(kill_throttle)"/>
|
||||
<field name="value" value="0"/>
|
||||
</message>
|
||||
<!-- kill throttle when pressing both back and blue buttons at the same time -->
|
||||
<message class="ground" name="DL_SETTING" on_event="b_back && b_blue">
|
||||
<field name="index" value="IndexOfSetting(kill_throttle)"/>
|
||||
<field name="value" value="1"/>
|
||||
</message>
|
||||
|
||||
</messages>
|
||||
|
||||
</joystick>
|
||||
|
||||
@@ -74,5 +74,11 @@ so e.g. HatDown(hat)
|
||||
<field name="block_id" value="IndexOfBlock('land here')"/>
|
||||
</message>
|
||||
|
||||
<!-- kill throttle when pressing both fire buttons at the same time -->
|
||||
<message class="ground" name="DL_SETTING" on_event="fire && fire2">
|
||||
<field name="index" value="IndexOfSetting(kill_throttle)"/>
|
||||
<field name="value" value="1"/>
|
||||
</message>
|
||||
|
||||
</messages>
|
||||
</joystick>
|
||||
|
||||
Reference in New Issue
Block a user