[Top][All Lists]

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

[Paparazzi-devel] adding a new telemetry message

From: Refik Sever
Subject: [Paparazzi-devel] adding a new telemetry message
Date: Thu, 22 Aug 2013 14:37:20 +0000


I am trying to add a new telemetry message (ac characteristics in energy ctl), but it gives an error. The steps I followed:

1. I added  following lines to conf/messages.xml

<message name="AC_CHAR" id="72">
     <field name="ac_char_climb_pitch" type="float" />
     <field name="ac_char_climb_max" type="float" />
     <field name="ac_char_climb_count" type="uint8" />
     <field name="ac_char_descend_pitch" type="float" />
     <field name="ac_char_descend_max" type="float" />
     <field name="ac_char_descend_count" type="uint8" />
     <field name="ac_char_cruise_throttle" type="float" />
     <field name="ac_char_cruise_pitch" type="float" />
     <field name="ac_char_cruise_count" type="uint8" />   

2. I added these lines to telemetry.h :

#include "firmwares/fixedwing/guidance/energy_ctrl.h"
#define PERIODIC_SEND_AC_CHAR(_trans, _dev) DOWNLINK_SEND_AC_CHAR(_trans, _dev, \
    &ac_char_climb_pitch, \
    &ac_char_climb_max, \
    &ac_char_climb_count, \
    &ac_char_descend_pitch, \
    &ac_char_descend_max, \
    &ac_char_descend_count, \
    &ac_char_cruise_throttle, \
    &ac_char_cruise_pitch, \
    &ac_char_cruise_count \
#define PERIODIC_SEND_AC_CHAR(_trans, _dev) {}

3.  I added this line to telemetry xml file:
 <message name="AC_CHAR"             period="10."/>

I run make and then tried to build however it gave this error:

firmwares/fixedwing/main_ap.c: In function 'reporting_task':
firmwares/fixedwing/main_ap.c:412:1: error: macro "DOWNLINK_SEND_AC_CHAR" passed 12 arguments, but takes just 11
firmwares/fixedwing/main_ap.c:412:1: error: 'DOWNLINK_SEND_AC_CHAR' undeclared (first use in this function)
firmwares/fixedwing/main_ap.c:412:1: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [/home/refik/MASTER_PAPARAZZI_130816/paparazzi/var/Zagi_ref_1/ap/firmwares/fixedwing/main_ap.o] Error 1
make[1]: Leaving directory `/home/refik/MASTER_PAPARAZZI_130816/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/refik/MASTER_PAPARAZZI_130816/paparazzi'

FAILED 'make -C /home/refik/MASTER_PAPARAZZI_130816/paparazzi -f AIRCRAFT=Zagi_ref_1 PRINT_CONFIG=1 ap.compile' with code 2

Where did I make a mistake? My paparazzi version is


reply via email to

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