paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] adding a telemetry message


From: Refik Sever
Subject: [Paparazzi-devel] adding a telemetry message
Date: Mon, 27 May 2013 13:13:08 +0000

Hello,

I am trying to add a telemetry message. I followed the commands in the wiki:

1. I added this line to default_fixedwing_imu.xml file:

<?xml version="1.0"?>
<!DOCTYPE telemetry SYSTEM "telemetry.dtd">
<telemetry>
  <process name="Ap">
    <mode name="default">
      <message name="AIRSPEED"            period="1"/>
      <message name="ALIVE"               period="5"/>
      <message name="GPS"                 period="0.25"/>
      <message name="NAVIGATION"          period="1."/>
      <message name="IVMEOLCER"           period="0.2"/>


2. I added these lines to ap_downlink.h file:

#define PERIODIC_SEND_IVMEOLCER(_trans, _dev) Downlink({ \
    struct FloatEulers* att = stateGetNedToBodyEulers_f(); \
    DOWNLINK_SEND_IVMEOLCER(_trans, _dev, &(att->phi), &(att->psi), &(att->theta)); \
})


3. I added these lines to messages.xml file:

 <message name="IVMEOLCER" id="5">
     <field name="phi"   type="float" unit="rad" alt_unit="deg"/>
     <field name="psi"   type="float" unit="rad" alt_unit="deg"/>
     <field name="theta" type="float" unit="rad" alt_unit="deg"/>
   </message>


However, while building it gives this error:

firmwares/fixedwing/main_ap.c:410:5: warning: implicit declaration of function 'DOWNLINK_SEND_IVMEOLCER' [-Wimplicit-function-declaration]
firmwares/fixedwing/main_ap.c:410:5: warning: nested extern declaration of 'DOWNLINK_SEND_IVMEOLCER' [-Wnested-externs]
firmwares/fixedwing/main_ap.c:410:5: error: 'PprzTransport' undeclared (first use in this function)
firmwares/fixedwing/main_ap.c:410:5: note: each undeclared identifier is reported only once for each function it appears in
firmwares/fixedwing/main_ap.c:410:5: error: 'UART1' undeclared (first use in this function)
make[1]: *** [/home/refik/MASTER_PAPARAZZI/paparazzi/var/MYAC1/ap/firmwares/fixedwing/main_ap.o] Error 1
make[1]: Leaving directory `/home/refik/MASTER_PAPARAZZI/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2



Please help about this error.

Cheers,
Refik


reply via email to

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