[Top][All Lists]

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

[Paparazzi-devel] uplink uint32[] through datalink

From: miles
Subject: [Paparazzi-devel] uplink uint32[] through datalink
Date: Wed, 9 Sep 2009 09:46:25 -0500

Hi All,

I am having uint32 encoding/decoding problems while sending uint32 messages to the aircraft.

Here is my message definition:

 <message name="PATH_SEGMENT" id="102" link="forwarded">
   <field name="ac_id" type="uint8"></field>
   <field name="segment_id" type="uint8"></field>
   <field name="values" type="uint32[]"></field>

I am able to send up to 8 digits, but if i try sending 9 digit integers, every value in the array from that index on is garbled.  The var/include/dl_protocol.h files seems ok:

#define DL_PATH_SEGMENT_ac_id(_payload) ((uint8_t)(*((uint8_t*)_payload+2)))
#define DL_PATH_SEGMENT_segment_id(_payload) ((uint8_t)(*((uint8_t*)_payload+3)))
#define DL_PATH_SEGMENT_values_length(_payload) ((uint8_t)(*((uint8_t*)_payload+4)))
#define DL_PATH_SEGMENT_values(_payload) ((uint32_t*)(_payload+5))

Could there be a problem in the ocaml ground station software?


reply via email to

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