Commit Graph

47 Commits

Author SHA1 Message Date
Gautier Hattenberger 41451d5422 [sim] moving the old ocaml simulator to NPS (#3167)
- the exact same basic model is now a NPS FDM
- sim target still woks, it is just an alias to NPS with the proper FDM
- the old ocaml files are removed
- AHRS and INS are bypassed, since the accelerations are not well calculated by the model
2023-11-07 10:21:12 +01:00
Gautier Hattenberger d89f489631 [mission] add support for custom mission patterns or actions
Specific navigation functions or even payload actions can be registered
in the mission module in order to be called from the mission controller
like the built-in navigation patterns.
Each custom element (callback function) is registered/called with an
unique string identifier of 5 char max.
A maximum of 12 parameters can be passed to the callback function.
An example is provided with the nav_flower navigation function.
2018-08-30 09:43:39 +02:00
Kirk Scheper 1d66b19adc add blocking option to i2c, remove unnecesary GNU_SOURCE and protect pthread_setname from mac (#2260)
* add blocking option to i2c with configurable timeout
* remove unnecesary GNU_SOURCE
* protect pthread_setname from mac
2018-05-09 16:58:06 +02:00
Gautier Hattenberger 45b305ab10 [build] add boards specific flags when needed
and activate LTO compilation to reduce code size on small board naze32
2016-04-30 23:16:07 +02:00
Gautier Hattenberger 1c383e8882 [pprzlink] fix linking with pprzlink C stub 2016-01-07 18:19:34 +01:00
Piotr Esden-Tempski 2c23b9754d [ocaml] [sim] Switched to dynamic linking on OS X.
An interesting lesson here is that ocamlc assumes that all .so files are
shared libraries. It does not do the same for .dylib files. This is why
we have to compile a dylib and save it away as a .so so that ocamlc is
able to do the right thing.
2015-03-23 22:42:51 +01:00
Felix Ruess 3987170152 [ocaml][simulator] remove myGtkInit by calling init directly in simsitl.ml 2015-03-19 13:16:40 +01:00
Felix Ruess 8df5ffbadc [test] update compile_all_aircrafts test
Also replace LOCAL_CFLAGS (which wasn't used anymore) with USER_CFLAGS (and add where missing).
Now you can e.g. test compile all aircrafts/targets in your conf and add extra flags like treating warnings as errors:

$ J=AUTO USER_CFLAGS=-Werror prove conf/examples
2014-11-07 14:07:24 +01:00
Felix Ruess a740798858 [build] use pkg-config to get ivy include dirs for simulation targets 2014-10-22 19:33:10 +02:00
Gautier Hattenberger 5135d9d10e [build] optimization flag can be set from airframe file 2014-02-07 22:47:54 +01:00
Felix Ruess 8807918668 [conf] fix/improve dependecy generation 2013-11-01 18:41:15 +01:00
Felix Ruess e175d00487 [Makefile] build sim target in custom mode on ARM 2013-04-25 15:00:04 +02:00
Felix Ruess cf5a44a81b [Makefile] use -fPIC for all architectures 2013-04-22 01:34:32 +02:00
Stephen Dwyer b4bd31b4b4 [makefile] fix sim build on OS X after broken from no_custom, can't seem to build the autopilot.so properly so back to -custom just for simsitl 2013-04-17 19:45:25 -06:00
Felix Ruess 346fc0c416 [makefile] set OCAMLC and OCAMLOPT to use ocamlfind 2013-03-20 00:50:06 +01:00
Gautier Hattenberger 390d02ab49 [makefile] use pprzlib has a proper ocaml package 2013-02-25 09:47:44 +01:00
Felix Ruess bdb608c3ae [makefile] fPIC for sim... 2013-02-23 12:32:00 +01:00
Gautier Hattenberger 00018d3297 [makefile] seems to work fine now 2013-02-23 12:31:59 +01:00
Felix Ruess 7b7bec44f1 more makefile cleanup 2013-01-25 00:12:52 +01:00
Felix Ruess 2010933572 [build system] removed some more old avr cruft in Makefiles 2013-01-24 23:35:28 +01:00
Felix Ruess 8bff1b46c9 [build system] clean up makefiles and fix dependencies, parallel build with make -j 8 seems to work now 2012-11-10 19:45:22 +01:00
Felix Ruess 54582bfa1a [sim] fix segfault when trying to send I2C_ERRORS
tried to fix the source of the problem,
but didn't find it, so just don't send I2C_ERRORS in SITL
2012-05-23 00:33:01 +02:00
Felix Ruess ef76c8a866 rotorcraft: handle_periodic_tasks to check all sys_time timer
- nps: use new systime
- nps: renamed nps_autopilot_booz to nps_autopilot_rotorcraft
2012-02-13 21:33:43 +01:00
Felix Ruess f833cb1a04 generic sys_time_init and arch specific sys_time_arch_init. sys_time_arch stuff for sim, compile sim with gnu99 standard 2012-01-06 19:21:41 +01:00
lamestllama 736f534b75 use ocamlfind to find include path for xml-light and labgtk2 in in Makefile.sim 2011-01-18 01:04:47 +10:30
Felix Ruess 9c19772207 for fdm_nps subsystem: use jsbsim package if available, otherwise look for jsbsim in /opt/jsbsim 2010-10-11 15:37:16 +00:00
Felix Ruess 5a290563fd fix SRC_ARCH for some targets 2010-09-23 13:00:26 +00:00
Felix Ruess 8f288b43b9 move sim dir to arch as well, sim compiles again 2010-09-23 12:33:56 +00:00
Pascal Brisset f0019a8060 useless path removed 2009-06-17 12:59:32 +00:00
Gautier Hattenberger a148ff9094 compilation with g++ for jsbsim 2009-03-05 14:37:19 +00:00
Pascal Brisset e4965d86d5 myGtkInit moved to sw/lib/ocaml 2008-10-13 10:44:47 +00:00
Pascal Brisset a08d64e5bb myGtkInit now compiled by the main make 2008-09-17 18:00:15 +00:00
Pascal Brisset f5dbe6e638 Dependency on the airframe Makefile section added 2008-07-17 18:19:41 +00:00
Gautier Hattenberger 77cf56044d set gtk locale to false at init to avoid badly interpreted floats for french users 2008-04-30 07:55:16 +00:00
Antoine Drouin e4caeb378b *** empty log message *** 2008-04-11 11:39:37 +00:00
Pascal Brisset 60c5da11a8 New rules for subdirectories 2008-04-11 11:28:54 +00:00
Pascal Brisset f1d81a4001 -I +xml-light added (to use the official package) 2007-12-08 11:14:36 +00:00
Antoine Drouin c92c5cb1ca *** empty log message *** 2007-11-06 06:38:18 +00:00
Pascal Brisset 786a4c38ab *** empty log message *** 2007-06-30 21:21:24 +00:00
Pascal Brisset 30c12b78e4 new smaller packaging 2006-09-07 15:46:23 +00:00
Pascal Brisset 28582042f2 install 2006-08-26 21:21:55 +00:00
Antoine Drouin ef8c45f89d upgraded for ivy-3.8 2006-07-28 19:37:03 +00:00
Antoine Drouin aa18b07d12 added DOWNLINK to Twin2 - Seems that we cannot have an AC without downlink - Do we realZly want that ? 2006-05-25 18:27:32 +00:00
Pascal Brisset beb9c96dd2 *** empty log message *** 2006-04-22 14:58:43 +00:00
Pascal Brisset 0bbcad70e0 simulator starts ! 2006-04-21 17:00:33 +00:00
Pascal Brisset abc6712c41 *** empty log message *** 2006-04-20 21:39:30 +00:00
Pascal Brisset 7d35031bf5 *** empty log message *** 2006-04-20 14:44:55 +00:00