paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5242] Always copy rc status in passthrough, even wh


From: Allen Ibara
Subject: [paparazzi-commits] [5242] Always copy rc status in passthrough, even when there is no new data (the status could change to lost anyway).
Date: Fri, 06 Aug 2010 03:54:53 +0000

Revision: 5242
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5242
Author:   aibara
Date:     2010-08-06 03:54:53 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
Always copy rc status in passthrough, even when there is no new data (the 
status could change to lost anyway). Possibly the upstream processor should 
just track rc status itself...

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/fms/fms_spi_autopilot_msg.c

Modified: paparazzi3/trunk/sw/airborne/fms/fms_spi_autopilot_msg.c
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/fms_spi_autopilot_msg.c    2010-08-05 
21:34:56 UTC (rev 5241)
+++ paparazzi3/trunk/sw/airborne/fms/fms_spi_autopilot_msg.c    2010-08-06 
03:54:53 UTC (rev 5242)
@@ -117,9 +117,10 @@
     radio_control.values[RADIO_CONTROL_GEAR] = msg_up->rc_gear;
     radio_control.values[RADIO_CONTROL_AUX3] = msg_up->rc_aux3;
     radio_control.values[RADIO_CONTROL_AUX4] = msg_up->rc_aux4;
-    radio_control.status = msg_up->rc_status;
     radio_control_callback();
   }
+  // always fill status, it may change even when in the case when there is no 
new data
+  radio_control.status = msg_up->rc_status;
 
   // Fill IMU data
   imu.gyro.p = RATE_FLOAT_OF_BFP(msg_up->gyro.p);




reply via email to

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