mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 05:17:03 +08:00
New joystick file for RC trainer
This commit is contained in:
@@ -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
|
#define STABILIZATION_ATTITUDE_H
|
||||||
|
|
||||||
#include "firmwares/rotorcraft/stabilization.h"
|
#include "firmwares/rotorcraft/stabilization.h"
|
||||||
|
#include "math/pprz_algebra_int.h"
|
||||||
#include STABILIZATION_ATTITUDE_TYPE_H
|
#include STABILIZATION_ATTITUDE_TYPE_H
|
||||||
|
|
||||||
extern void stabilization_attitude_init(void);
|
extern void stabilization_attitude_init(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user