paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Custom GCS


From: Eduardo lavratti
Subject: Re: [Paparazzi-devel] Custom GCS
Date: Sat, 13 Sep 2014 01:32:51 -0300

Hi felix, the code work fine but i have some question about messages sent by server.

I removed WP_MOVED from telemtry and now the ap not send it periodically.

When i move the waypoint using ppzgcs the ap send the WP_MOVED and after this the server start to send continuously the message WAYPOINT_MOVED as you can see bellow.

Way this occur ? is this correct ?
If i change 10 waypoint the server send 10 WAYPOINT_MOVED message everytime



address@hidden:~$ ivyprobe '(.*MOVED.*)'
Broadcasting on network 127.255.255.255, port 2010
IVYPROBE connected from localhost
IVYPROBE connected from localhost
Paparazzi GCS connected from localhost
Paparazzi sim 2 connected from localhost
Paparazzi server connected from localhost
Paparazzi sim 2 sent  '2 WP_MOVED 2 508366.968750 -3314735.500000 150.000000 22'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
Paparazzi server sent  'ground WAYPOINT_MOVED 2 2 -29.9634230 -50.9132804 150.000000 0.000000'
^C









Date: Fri, 12 Sep 2014 22:54:01 +0200
From: address@hidden
To: address@hidden
Subject: Re: [Paparazzi-devel] Custom GCS

if (msg_id == DL_REQUEST_WAYPOINTS && DL_REQUEST_WAYPOINTS_ac_id(dl_buffer) == AC_ID) {
  uint8_t wp_id = DL_REQUEST_WAYPOINTS_wp_id(dl_buffer);
  if (wp_id == 0) {
    for (uint8_t i=0, i < nb_waypoint, i++) {
      DownlinkSendWp(DefaultChannel, DefaultDevice, i);
    }
  } else if (wp_id < nb_waypoint) {
    DownlinkSendWp(DefaultChannel, DefaultDevice, wp_id);
  }
}

of course..

On Fri, Sep 12, 2014 at 10:48 PM, Felix Ruess <address@hidden> wrote:
Hi again,

Turning off the periodic sending of the waypoints is really easy:
Simply remove the periodic WP_MOVED message from your telemetry xml file.

Adding a message to request the list of current waypoints should also not be very hard, some thing along the lines of:
- add a message REQUEST_WAYPOINTS with the aircraft id and waypoint id to the datalink class (similar to MOVE_WP)
- handle this datalink message in datalink.c, upon receiving it (and checking for the correct ac id), send all waypoints or the requested one:

if (msg_id == DL_REQUEST_WAYPOINTS && DL_REQUEST_WAYPOINTS_ac_id(dl_buffer) == AC_ID) {
    uint8_t wp_id = DL_REQUEST_WAYPOINTS_wp_id(dl_buffer);
if (wp_id == 0) {
  for (uint8_t i=0, i < nb_waypoint, i++) {
    DownlinkSendWp(DefaultChannel, DefaultDevice, i);
  }
} else if (wp_id < nb_waypoint) {
  DownlinkSendWp(DefaultChannel, DefaultDevice, wp_id);
}

For sending all waypoints the question is if the downlink buffer is large enough to add all these messages to the queue at once...
Normal uart buffer length is 128bytes, so you would probably either need to increase that or not send them all at once...

Cheers, Felix


On Fri, Sep 12, 2014 at 10:10 PM, Eduardo lavratti <address@hidden> wrote:
Thanks felix, i will see the settings.h
I see no problem if i need to copu the setting.h to the windows GCS.

Other idea is to use a server like the one used to send messages to android GCS.

Personally i not like the way the ppz telemetry work.
For example, i think its much better to request a list of waypoint than receive waypoint by waypoint in the telemetry link every time.
The same to config values.

I prefer the way the mavlink or some other work.

Some time i think in some way to set a flag that the ppz stop to send the waypoint message and then when i send a message requesting a waypoint list the flag was set and the waypoints sent  then clear the flag again.

Do you have some ideas about this ?



Date: Fri, 12 Sep 2014 22:01:14 +0200
From: address@hidden

To: address@hidden
Subject: Re: [Paparazzi-devel] Custom GCS

Hi Eduardo,

without having the aircraft conf listing which settings the aircraft uses or the var/aircrafts/<name>/ap/generated/settings.h there is currently no way to know which DL_VALUE index corresponds to which setting.
We wanted to avoid to send down the description/name of the setting each time, but we should try to figure out a nice way to request that information once.

So if you have the information about the aircraft on your computer, you can currently either parse the xml files or maybe use the generated SETTINGS array macro from generated/settings.h

Hope that helps...
Cheers, Felix

On Fri, Sep 12, 2014 at 9:21 PM, Eduardo lavratti <address@hidden> wrote:
Have you more images ? or info about this GCS?

I am using the wiiwingui as base for GCS
For now i read and show all sensors, read, send, load and save all waypoints and generate, send, load and save mission(waypoint and circle)
The next step is make a poligon survey in the mission module using dinamic number of waypoints.


> Date: Fri, 12 Sep 2014 00:48:34 -0700
> From: address@hidden
> To: address@hidden
> Subject: Re: [Paparazzi-devel] Custom GCS

>
> hi,
> nice project. a company in germany did the same for some years:
> http://cis-rostock.net/cis/0_index/sites/default/files/imagecache/preset_original/wysiwyg_imageupload/1/flyguide.jpg
>
> But i dont know which person made this.
>
>
>
> --
> View this message in context: http://lists.paparazziuav.org/Custom-GCS-tp16101p16113.html
> Sent from the paparazzi-devel mailing list archive at Nabble.com.
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

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



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

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




_______________________________________________ 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]