Autopilot-CVS: downlink/ground/src Joystick.h,1.3,1.4
Status: Alpha
Brought to you by:
tramm
|
From: Dennis D'A. <den...@us...> - 2003-02-05 17:42:05
|
Update of /cvsroot/autopilot/downlink/ground/src
In directory sc8-pr-cvs1:/tmp/cvs-serv16226
Modified Files:
Joystick.h
Log Message:
added structures from sim joy code
Index: Joystick.h
===================================================================
RCS file: /cvsroot/autopilot/downlink/ground/src/Joystick.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Joystick.h 3 Feb 2003 16:09:23 -0000 1.3
+++ Joystick.h 5 Feb 2003 17:42:01 -0000 1.4
@@ -39,10 +39,26 @@
extern int joy_throttle;
extern int joy_button[8];
+#define MAX_AXES 8
+
+typedef struct {
+ const char * name;
+ int min;
+ int max;
+ double last;
+} joy_axis_t;
+
+typedef struct {
+ double min_deflection;
+ double max_deflection;
+ double trim;
+} trim_t;
+
+
extern void
reconnect_joy(
#ifdef WIN32
- UINT uJoyID = 0
+ UINT uJoyID = 1
#endif
#ifndef WIN32
|