New joystick file for RC trainer

This commit is contained in:
Ewoud Smeur
2014-10-17 15:06:40 +02:00
committed by Felix Ruess
parent 89b2255a43
commit 8e7507951f
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<joystick>
<input>
<axis index="1" name="roll" />
<axis index="2" name="pitch" />
<axis index="0" name="throttle" />
<axis index="4" name="yaw" />
<button index="3" name="mode" />
</input>
<messages period="0.025">
<message class="datalink" name="RC_4CH" send_always="true">
<field name="mode" value="mode" />
<field name="throttle" value="Fit(throttle,-117,117,0,127)" />
<field name="roll" value="-roll" />
<field name="yaw" value="-yaw" />
<field name="pitch" value="-pitch" />
</message>
</messages>
</joystick>
@@ -28,6 +28,7 @@
#define STABILIZATION_ATTITUDE_H
#include "firmwares/rotorcraft/stabilization.h"
#include "math/pprz_algebra_int.h"
#include STABILIZATION_ATTITUDE_TYPE_H
extern void stabilization_attitude_init(void);