paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5174] fixed periodic demo


From: antoine drouin
Subject: [paparazzi-commits] [5174] fixed periodic demo
Date: Tue, 27 Jul 2010 15:16:22 +0000

Revision: 5174
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5174
Author:   poine
Date:     2010-07-27 15:16:22 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
fixed periodic demo

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

Modified: paparazzi3/trunk/sw/airborne/fms/fms_periodic.c
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/fms_periodic.c     2010-07-27 13:47:11 UTC 
(rev 5173)
+++ paparazzi3/trunk/sw/airborne/fms/fms_periodic.c     2010-07-27 15:16:22 UTC 
(rev 5174)
@@ -31,6 +31,8 @@
 #include <fcntl.h>
 #include <sched.h>
 #include <time.h>
+#include <string.h>
+#include <errno.h>
 
 #include "fms_debug.h"
 

Modified: paparazzi3/trunk/sw/airborne/fms/overo_test_periodic.c
===================================================================
--- paparazzi3/trunk/sw/airborne/fms/overo_test_periodic.c      2010-07-27 
13:47:11 UTC (rev 5173)
+++ paparazzi3/trunk/sw/airborne/fms/overo_test_periodic.c      2010-07-27 
15:16:22 UTC (rev 5174)
@@ -7,9 +7,10 @@
 
 //#define LINK_HOST  "10.31.4.7"
 //#define LINK_HOST  "stripe"
-#define LINK_HOST  "192.168.1.0"
-#define LINK_PORT        4242
-#define DATALINK_PORT    4243
+#define LINK_HOST     "192.168.1.0"
+#define LINK_PORT             4242
+#define DATALINK_PORT         4243
+#define FMS_NETWORK_BROADCAST TRUE
 
 #include "airframe.h"
 
@@ -66,10 +67,11 @@
 
 static void main_send_to_stm(void) {
 
-  union AutopilotMessage msg_in, msg_out;
-  spi_link_send(&msg_out.down, sizeof(union AutopilotMessage), &msg_in.up);
+  struct OVERO_LINK_MSG_UP   msg_in;
+  struct OVERO_LINK_MSG_DOWN msg_out;
+  spi_link_send(&msg_out, sizeof(union AutopilotMessage), &msg_in);
 
-  printf("spi telemetry got %d\n", msg_in.up.tw_len);
+  //  printf("spi telemetry got %d\n", msg_in.up.tw_len);
   //  for (int i=0; i<msg_in.up.tw_len; i++)
   //    printf("%02x ",  msg_in.up.data[i]);
   //  printf("\n");




reply via email to

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