paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] adding a new telemetry message


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] adding a new telemetry message
Date: Thu, 22 Aug 2013 16:44:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

Did you do a 'make' from the main paparazzi folder to generate messages.h ? You need to do that each time you change something in messages.xml

Gautier

Le 22/08/2013 16:37, Refik Sever a écrit :
Hello,

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" />   
   </message>

2. I added these lines to telemetry.h :

#ifdef FW_V_CTL_ENERGY_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 \
    )
#else
#define PERIODIC_SEND_AC_CHAR(_trans, _dev) {}
#endif

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 Makefile.ac AIRCRAFT=Zagi_ref_1 PRINT_CONFIG=1 ap.compile' with code 2

Where did I make a mistake? My paparazzi version is
v5.1_devel-126-g1757e2e-dirty.

Regards,
Refik


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

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