paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5826] Add ADC values/messages to fms_autopilot_msg.


From: Allen Ibara
Subject: [paparazzi-commits] [5826] Add ADC values/messages to fms_autopilot_msg.h
Date: Tue, 07 Sep 2010 17:44:12 +0000

Revision: 5826
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5826
Author:   aibara
Date:     2010-09-07 17:44:12 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
Add ADC values/messages to fms_autopilot_msg.h

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/fms/fms_autopilot_msg.h

Modified: paparazzi3/trunk/sw/airborne/fms/fms_autopilot_msg.h
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/fms_autopilot_msg.h        2010-09-07 
17:43:20 UTC (rev 5825)
+++ paparazzi3/trunk/sw/airborne/fms/fms_autopilot_msg.h        2010-09-07 
17:44:12 UTC (rev 5826)
@@ -4,7 +4,9 @@
 #include <inttypes.h>
 #include "math/pprz_algebra_int.h"
 #include "airframe.h"
+#include "adc.h"
 
+
 #define LISA_PWM_OUTPUT_NB 6
 
 /*
@@ -66,6 +68,10 @@
  * Passthrough, aka biplan
  */
 
+struct __attribute__ ((packed)) ADCMessage { 
+       uint16_t channels[NB_ADC];
+};
+
 /* used to indicate parts of the message which actually represent a new 
measurement */
 struct __attribute__ ((packed)) PTUpValidFlags
 {
@@ -74,6 +80,7 @@
   unsigned pressure_differential:1;
   unsigned vane:1;
   unsigned imu:1;
+       unsigned adc:1; 
 };
 
 struct __attribute__ ((packed)) AutopilotMessagePTUp
@@ -95,6 +102,8 @@
   uint8_t rc_status;
   float vane_angle1; 
   float vane_angle2; 
+       struct ADCMessage adc; 
+
   struct PTUpValidFlags valid;
   uint32_t stm_msg_cnt;
   uint32_t stm_crc_err_cnt;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]