Sniffing the dl_settings

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Sniffing the dl_settings

Hector Garcia de Marina
Hello guys,

I am writing an agent for the ground segment and I can sniff the messages GCS <-> vehicle.

I was wondering whether there is something where I can checked the assigned indexes to the actual names in the .xml settings.

Of course I can check them for a particular configuration :P, but I would like to have it done automatically and for whatever conf of the user.

Cheers!


--
Héctor


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Sniffing the dl_settings

flixr
Administrator
Hi Hector,

for quick tests to "sniff" the "raw" IVY messages you can use ivyprobe: https://wiki.paparazziuav.org/wiki/Ivy#Ivyprobe

To build something more "usable", it is probably easiest to write it in python using the IvyMessagesInterface from pprzlink (https://pprzlink.readthedocs.io/en/latest/python/ivy.html)
Together with PaparazziACSettings from settings_xml_parse it should be fairly easy to get indices for the settings names. It's a bit basic but should do the job...
See e.g. https://github.com/paparazzi/paparazzi/blob/master/sw/ground_segment/python/guided_mode_example.py#L34

Improvements to this would also be welcome ;-)

Hope that helps,
Felix

On Sat, Aug 13, 2016 at 4:14 PM, Hector Garcia de Marina <[hidden email]> wrote:
Hello guys,

I am writing an agent for the ground segment and I can sniff the messages GCS <-> vehicle.

I was wondering whether there is something where I can checked the assigned indexes to the actual names in the .xml settings.

Of course I can check them for a particular configuration :P, but I would like to have it done automatically and for whatever conf of the user.

Cheers!


--
Héctor


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Sniffing the dl_settings

Hector Garcia de Marina
Hi Felix,

wow, this really helps me since the agent that I am writing is in Python.

"from settings_xml_parse import PaparazziACSettings" , this is indeed what I was looking for.

thanks a lot!

On Sat, Aug 13, 2016 at 8:53 PM, Felix Ruess <[hidden email]> wrote:
Hi Hector,

for quick tests to "sniff" the "raw" IVY messages you can use ivyprobe: https://wiki.paparazziuav.org/wiki/Ivy#Ivyprobe

To build something more "usable", it is probably easiest to write it in python using the IvyMessagesInterface from pprzlink (https://pprzlink.readthedocs.io/en/latest/python/ivy.html)
Together with PaparazziACSettings from settings_xml_parse it should be fairly easy to get indices for the settings names. It's a bit basic but should do the job...
See e.g. https://github.com/paparazzi/paparazzi/blob/master/sw/ground_segment/python/guided_mode_example.py#L34

Improvements to this would also be welcome ;-)

Hope that helps,
Felix

On Sat, Aug 13, 2016 at 4:14 PM, Hector Garcia de Marina <[hidden email]> wrote:
Hello guys,

I am writing an agent for the ground segment and I can sniff the messages GCS <-> vehicle.

I was wondering whether there is something where I can checked the assigned indexes to the actual names in the .xml settings.

Of course I can check them for a particular configuration :P, but I would like to have it done automatically and for whatever conf of the user.

Cheers!


--
Héctor


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




--

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Loading...