Commit Graph

97 Commits

Author SHA1 Message Date
Hector Garcia de Marina ddc8510f18 Python script exits in a clean way (#2186) 2017-11-16 17:04:01 +01:00
Hector Garcia de Marina d2079a780f some ints should be floats (#2184) 2017-11-15 15:52:05 +01:00
Felix Ruess 1d763b575e python: fix svinfo viewer 2017-08-06 13:15:59 +02:00
Felix Ruess 76c9beb7d5 python: fix setting of lable in messages app 2017-08-06 12:57:48 +02:00
Hector Garcia de Marina b44fcdc497 Updating gvfFormation.py (#2094)
* compatible with pprzlink 1 and 2. Msgs do not need to be split anymore

* PAPARAZZI_HOME and SRC employed correctly

* PPRZ_SRC is now set correctly
2017-07-26 16:12:33 +02:00
Gautier Hattenberger 6a72c5da84 [pprzlink] allow to compile paparazzi with PPRZLINK v2 (#2083)
To activate, build project with correct option:
 PPRZLINK_LIB_VERSION=2.0 make
(note that 'make clean' is usualy required before that)
2017-06-29 10:38:30 +02:00
Hector Garcia de Marina 2144be74be Poly survey via Guidance Vector Field addition (#2052)
* [GVF] more functions exposed to the user

* [GVF] gvf_line_xy1_xy2 added

* [GVF] segment msg added for the GCS

* poly survey with GVF

* [GVF] segment primitive added

* integrating gvf and poly survey

* [GVF] each trajectory has its own gains now

* updated settings (gains) for the GVF trajectories

* [GVF] nav_survey_polygon integrated with GVF

* [GVF] python scripts updated for the new GVF msg format

* pprz c code style

* [GVF] updated demo

* gvf demo includes poly survey

* [GVF] gvf poly survey moved to gvf module

* [GVF] nav module not necessary anymore for gvf demo

* [GVF] _gvf added for being different from others nav functions from other modules

* [GVF] description about employing gvf here has been removed

* gvf_ for not conflict with former nav module

* These definitions now have to be done in the airframe conf

* [GVF] kn is not used anymore by the gvf visualization

* [GVF] better description msg for the formation script

* [GVF] Doxygen doc

* print for python 3

* correct style

* we set up correctly the vertical control

* Doxygen

* Only for auto2. If we are in auto1, do not override the roll set point

* Circular formation now also works for counter-clockwise direction

* update pprzlink

* Gautier comments

* [GVF] more functions exposed to the user

* [GVF] gvf_line_xy1_xy2 added

* [GVF] segment msg added for the GCS

* poly survey with GVF

* [GVF] segment primitive added

* integrating gvf and poly survey

* [GVF] each trajectory has its own gains now

* updated settings (gains) for the GVF trajectories

* [GVF] nav_survey_polygon integrated with GVF

* [GVF] python scripts updated for the new GVF msg format

* pprz c code style

* [GVF] updated demo

* gvf demo includes poly survey

* [GVF] gvf poly survey moved to gvf module

* [GVF] nav module not necessary anymore for gvf demo

* [GVF] _gvf added for being different from others nav functions from other modules

* [GVF] description about employing gvf here has been removed

* gvf_ for not conflict with former nav module

* These definitions now have to be done in the airframe conf

* [GVF] kn is not used anymore by the gvf visualization

* [GVF] better description msg for the formation script

* [GVF] Doxygen doc

* print for python 3

* correct style

* we set up correctly the vertical control

* Doxygen

* Only for auto2. If we are in auto1, do not override the roll set point

* Circular formation now also works for counter-clockwise direction

* update pprzlink

* Gautier comments

* PPRZ_MODE_AUTO2 is now AP_MODE_AUTO2

* new functions for the GVF demo

* Primitives for tracking lines, segments and segment_loops

* Poly survey track the proper segment function
2017-06-19 17:43:10 -07:00
Felix Ruess d9adcccc8e [python] guided_mode_example.py: get aircraft id if not give on commandline
sorry, terribly crude.... but should get the basic point across until someone does it nicely.
2017-04-24 22:45:57 +02:00
Hector Garcia de Marina b9e71e9fa4 Small update to the circular formation script (#2046)
* sigmas are in degrees now. We print all the errors correctly for logging purposes. The conversion to floats from the gvf msg has been changed since it complained for some machines.

* example added

* do not forcing a particular path

* cleaner demo flight plan. Now it also includes the gvf module

* correct usage msg

* [GVF] Example for the wiki and README
2017-03-24 13:19:45 +01:00
Hector Garcia de Marina f6b662b8cb Circular formation script (#2038)
* now we process only the msgs from the ac_id aircraft

* now we process only the msgs from the ac_id aircraft

* Circular formation Python script
2017-03-19 14:41:27 +01:00
Hector Garcia de Marina 08026cc0f4 Small bug with the plotting of the sin track at the python App (#2036) 2017-03-13 16:57:04 +01:00
Felix Ruess 5399bd98c7 remove trailing whitespaces
via `make cleanspaces`
2017-01-06 16:14:42 +01:00
Hector Garcia de Marina 125a361bbd now we process only the msgs from the ac_id aircraft (#1947) 2016-11-13 22:08:50 +01:00
Hector Garcia de Marina b6c134a856 GVF python app now accepted ac_id as argument (#1941) 2016-11-06 11:17:11 +01:00
Hector Garcia de Marina 2257a889da Guidance Vector Field (#1919)
* pprzlink updated to master

* guidance vector field module

* sin trajectory, forgot a minus sign...

* xml files for GVF

* control/gvf.xml not needed anymore

* added some structs for settings and placing gvf_variables into structs

* demo flight plan for testing the settings of the GVF

* style fixed

* trigonometry calculations made only once

* syntax fixed

* pprzlink updated

* added defines and improved description in the module .xml

* module only works for fixedwing (so far)
2016-11-03 22:48:02 +01:00
Christophe De Wagter d7498f8ae8 [atc] aeronautical altitude information (#1868)
small python program to display aeronautical altitude information
2016-10-28 20:48:19 +02:00
Christophe De Wagter 3863b2dcd4 [payload] Payload Forward over UDP. 2016-10-14 09:59:09 +02:00
Christophe De Wagter 7267c2e4de [svinfo] pep8 and header 2016-10-06 13:00:06 +02:00
Christophe De Wagter 9f264a59d2 [svinfo] Icon (#1870) 2016-10-01 14:29:08 +02:00
Christophe De Wagter af59d22c52 [ground_segment] Svinfo python viewer (#1860)
View Space Vehicle Azim and Elev with UsedInNav and Quality Colors and CNO bars in a python window.
2016-09-25 23:09:10 +02:00
Kirk Scheper 6686c9a0ce [guidance] Expansion of the guided protocol (#1694)
Updates the GUIDED_SETPOINT_NED message to set the reference frame of each input separately and adds a heading_rate setpoint.

Frame can be specified with the bits 0-3
Velocity of position setpoint can be specified with the bits 5-7
Flags field definition:
- bit 0: x,y as offset coordinates
- bit 1: x,y in body coordinates
- bit 2: z as offset coordinates
- bit 3: yaw as offset coordinates
- bit 4: free
- bit 5: x,y as vel
- bit 6: z as vel
- bit 7: yaw as rate
2016-06-10 14:20:10 +02:00
Felix Ruess f326ca5b27 [pprzlink][python] update pprzlink imports
serial/ivy_msg_interface are now in pprzlink module

so use
`from pprzlink.ivy import IvyMessagesInterface`
instead of
`from ivy_msg_interface import IvyMessagesInterface`
2016-04-19 14:44:30 +02:00
Felix Ruess eba0a75a3a [python] used updated IvyMessagesInterface 2016-02-28 22:21:05 +01:00
Felix Ruess 1a2530321f Merge branch 'master' into guided_velocity
* master: (53 commits)
  [pprzlink] call pymessages with VALIDATE_XML=FALSE
  [pprzlink] update submodule
  [pprzlink] point to messages.xml file in var directory
  [pprlink] remove paparazzi message definition
  [tools] gen_messages_doc.py: use messages.xml from pprzlink by default
  [python] remove pprz_msg and use pprzlink instead
  [datalink] fix bluegiga parser
  [conf] fix tudelft_bebop_flip.xml
  [generators] always put configure options at beginning
  Config files cleanup
  [pprzlink] more datalink include fixing
  [pprzlink] fix datalink include
  [ext] add pprzlink convenience targets
  make sure pprzlink submodule is initialized before building
  [pprzlink] fix conpilation errors with some devices
  [pprzlink] fix path for test progs
  [conf] gps: ublox_utm -> ublox, piksi to shared
  [pprzlink] fix transport files path
  [pprzlink] start fixing some compilation issues
  [pprzlink] generate intermcu messages from pprzlink
  ...
2016-01-24 10:52:02 +01:00
Felix Ruess 50dcf96003 [python] remove pprz_msg and use pprzlink instead 2016-01-14 22:17:54 +01:00
Felix Ruess af1739b54c [rotorcraft] start adding velocity commands for guided mode 2015-12-29 12:06:59 +01:00
Felix Ruess f98e316226 [python] properly exit examples on CTRL-C 2015-12-28 16:19:45 +01:00
Felix Ruess f8efdd0f7c [python] realtimeplot: take alt_unit scale from drag'n drop 2015-12-27 16:57:19 +01:00
Felix Ruess 229aed8c21 [pyhton] realtimeplot: wx 3.0 needs Colour instead of Color 2015-12-27 15:14:12 +01:00
Felix Ruess 4d3f66edcd [python] fix font in realtimeplot for wx3.0 2015-12-27 15:07:34 +01:00
Felix Ruess fce316b09e [python] sleep to make ivy happy 2015-12-27 13:17:26 +01:00
Felix Ruess 34e076e2f7 [python] add pprz_env with usable default IVY_BUS
- pprz_env.IVY_BUS is either the env variable IVY_BUS or appropriate default (checks for OSX)
- some fixes for udp_link

should fix #1495 and the python part of #204
2015-12-22 11:50:47 +01:00
Felix Ruess 67505034a1 [python] style fixes for real_time_plot 2015-12-21 13:15:39 +01:00
Felix Ruess 72564f4dc1 [python] some fixes for realtimeplotapp
- use messages_xml_map from pprz_msg
- hide the message picker instead of shutting it down (because that stops the ivy listener)
- fix drag and drop
2015-12-21 13:12:53 +01:00
Felix Ruess c38786552b [python] remove old unused stuff 2015-12-21 11:32:02 +01:00
Felix Ruess 8c8b05d8db [python] fix fallback PAPARAZZI_SRC in examples 2015-12-21 11:30:28 +01:00
Felix Ruess 93b7bae3ef [messages] rename POSITION_TARGET_LOCAL_NED to GUIDED_SETPOINT_NED 2015-12-15 22:47:19 +01:00
Felix Ruess 8cee6f874b [python] add guided_mode_example.py to show usage 2015-12-15 22:46:16 +01:00
Felix Ruess a22cae820f [python] fix messagesapp
return correct index if passing already existing message
2015-11-30 11:46:17 +01:00
Felix Ruess ad824555e6 [python] settingsapp: make sure wx window id < 32767 2015-11-23 11:53:00 +01:00
Felix Ruess d2dab9f19c [python] fix messagesapp for wxgtk3
see #1435
2015-11-21 19:42:07 +01:00
Felix Ruess 2c10dc3e04 [python] update control_panel, fix messagepicker
the python plotter, and other tools need some love...
Remved the Real-Time Plotter (Python) from control panel as it didn't work.
Fixed the messagepicker, but it only prints the ac_id/message/field
2015-11-20 13:39:03 +01:00
Felix Ruess 53273a05ca [python] pprz_msg: minor fixes and move_waypoint_example.py 2015-09-14 13:52:17 +02:00
Felix Ruess feef09a190 [python] remove dashboard, update radiowatch
- dashboard is totally outdated...
- keep radioframe as an example...
2015-08-31 23:34:03 +02:00
Felix Ruess c84c74b7ee fix link_combiner 2015-07-17 14:29:04 +02:00
Felix Ruess dd32e13683 [udp_link] reformat with 4spaces according to pep8 2015-07-16 18:21:19 +02:00
Felix Ruess c24177f8ae [python] settings: get PAPARAZZI_SRC
still needs to be cleaned up and converted to proper modules..
2015-02-18 13:12:49 +01:00
Felix Ruess 6706fac752 [python] pprz_msg using properties 2015-02-18 12:54:26 +01:00
Felix Ruess 8c9579c5a7 [python] ivy_msg_interface returns only ac_id and msg 2015-02-02 16:36:06 +01:00
Felix Ruess 155561db45 [python] ivytoredis: publish msg as json 2015-02-02 16:36:05 +01:00