paparazzi-devel
[Top][All Lists]
Advanced

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

RE: [Paparazzi-devel] GCS Receiving


From: Brendan Chen
Subject: RE: [Paparazzi-devel] GCS Receiving
Date: Sat, 27 Sep 2008 11:13:16 +1000

Thanks for the reply Pascal,

I am now experiencing some build issues. The lines I've added from what you 
described doesn't seem to make those warnings disappear. They are although 
warnings but somehow the build cannot complete at the end. I've tried it in 
both 'ap' and 'sim' mode and they don't seem to be working at all.

Anyway below are the build warnings/errors i'm suspecting the problem 
originates:

In 'ap' mode:
---------------------------------------
/home/brendan/paparazzi3/conf/autopilot/tiny_2_1.h:140:1: warning: this is the 
location of the previous definition
main_ap.c: In function `reporting_task':
main_ap.c:236: warning: implicit declaration of function 
`PERIODIC_SEND_SPD_DATA'
main_ap.c:236: warning: nested extern declaration of `PERIODIC_SEND_SPD_DATA'
main_ap.c:236: warning: implicit declaration of function 
`PERIODIC_SEND_ALT_DATA'
main_ap.c:236: warning: nested extern declaration of `PERIODIC_SEND_ALT_DATA'
CC /home/brendan/paparazzi3/var/MJ5/ap/main.o
main.c: In function `main':
main.c:82: warning: implicit declaration of function `DOWNLINK_SEND_SPD_DATA'
main.c:82: warning: nested extern declaration of `DOWNLINK_SEND_SPD_DATA'
main.c:83: warning: implicit declaration of function `DOWNLINK_SEND_ALT_DATA'
main.c:83: warning: nested extern declaration of `DOWNLINK_SEND_ALT_DATA'
.
.
.
/home/brendan/paparazzi3/var/MJ5/ap/main_ap.o: In function `periodic_task_ap':
main_ap.c:(.text+0x1060): undefined reference to `PERIODIC_SEND_SPD_DATA'
main_ap.c:(.text+0x106c): undefined reference to `PERIODIC_SEND_ALT_DATA'
... (and here-abouts is where the build stopped)
---------------------------------------

In 'sim' mode:
---------------------------------------
CC /home/brendan/paparazzi3/var/MJ5/sim/main_ap.o
main_ap.c: In function ‘reporting_task’:
main_ap.c:236: warning: implicit declaration of function 
‘PERIODIC_SEND_SPD_DATA’
main_ap.c:236: warning: implicit declaration of function 
‘PERIODIC_SEND_ALT_DATA’
.
.
.
/home/brendan/paparazzi3/var/MJ5/sim/main_ap.o: In function `periodic_task_ap':
main_ap.c:(.text+0x1724): undefined reference to `PERIODIC_SEND_SPD_DATA'
main_ap.c:(.text+0x1f2c): undefined reference to `PERIODIC_SEND_ALT_DATA'
collect2: ld returned 1 exit
... (here-abouts is where the build stopped)
---------------------------------------

Also another warning i'm getting, although doesn't cause issue on running of 
the chip, but it does get annoying is:
---------------------------------------
warning: "VoltageOfAdc" redefined
---------------------------------------
It appears quite a lot in both 'ap' and 'sim' mode (haven't tried the 'fbw' 
mode for any of the above problems) during build.

Help would be must appreciated thanks. Mainly in the first two warnings.


Thank you
Kind Regards,
Brendan
________________________________________
From: address@hidden address@hidden On Behalf Of address@hidden address@hidden
Sent: Saturday, 27 September 2008 7:13 AM
To: address@hidden
Subject: RE: [Paparazzi-devel] GCS Receiving

Quoting Brendan Chen <address@hidden>:

> Hi Roman,
>
> Thanks for the reply. The bit I don't understand is that after I put in the
> lines in the message.xml (code below), how will the GCS know when to use that
> format and how would I have this data displayed on the screen?

 All the messages are displayed by the Messages agent.

> Another thing is that I can't find an 'autopilot' dir from inside the 'sw'
> dir, and I had a look for downlink.h, although there are few files at various
> locations, they still look reasonably same. I'm not sure which one to use?

 From your declaration in the messages.xml file, a macro is generated (from the
"make" command in the paparazzi3/ directory) in the var/include/messages.h :

DOWNLINK_SEND_AirspeedData(...) ...

 You can call it anywhere from the airborne C code. Warning, the macro expects
pointers to the data; so the call will look like

    DOWNLINK_SEND_AirspeedData(&as_1, &as_2)

--Pascal



>
>
> Thanks
> Kind Regards,
> Brendan
>
> ________________________________________
> From: address@hidden
> address@hidden On Behalf Of
> Roman Krashanitsa address@hidden
> Sent: Thursday, 25 September 2008 10:56 AM
> To: address@hidden
> Subject: Re: [Paparazzi-devel] GCS Receiving
>
> Hey Brendan,
>
> The whole paparazzi system is based on sending numbers through uart
> from the autopilot, receiving them on the ground station again through
> the uart. You may start looking at /conf/messages.xml and
> /sw/autopilot/downlink.h.
>
> The point is, you configure what messages you will have in your system
> by specifying format for each in messages.xml, then write a wrapper
> function for each and put them into downlink.h, and call them either
> automatically at certain periods, or in the code whenever you need to
> transfer something. This task requires knowledge of C though.
>
> Sincerely,
>
> Roman
>
>
>
> 2008/9/24 Brendan Chen <address@hidden>:
> > Hi Guys,
> >
> > I'm trying to send some binary (or preferred decimal) number through the
> downlink UART. At the other end (the ground station) I would like to collect
> those data that I sent from the platform and display it somewhere on the GCS,
> any where is fine.
> >
> > Now my problem is I don't know how to send it, which functions I can use to
> send it from the platform and how I can collect the packages and display it.
> >
> > Can anyone help me with this problem please?
> >
> >
> > Thanks.
> > Brendan
> >
> >
> > _______________________________________________
> > Paparazzi-devel mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> >
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>




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




reply via email to

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