Commit Graph

468 Commits

Author SHA1 Message Date
Andrew Tridgell 9ca059ba16 SITL: added SIM_VIB_FREQ parameter 2019-01-08 06:49:02 +11:00
Fabio D'Urso 8ff9923e07 SITL: parse home coordinates as double (not float) to avoid precision loss 2019-01-05 21:38:41 +11:00
Andrew Tridgell a4e0ecd368 SITL: added an example for plane/quad follow 2018-12-30 16:16:54 +11:00
Andrew Tridgell 28a12224c3 SITL: fixed FDM UDP socket for JSBSim
needs to be uppercase for new versions
also improved debug output
2018-12-18 13:06:03 +11:00
Willem Eerland f8407dd33a SITL: fixed JSBSim backend for latest version 2018-12-18 13:06:03 +11:00
Andrew Tridgell cb3b0bd373 SITL: don't try to connect Morse sockets so quickly 2018-12-08 12:36:30 +11:00
Andrew Tridgell cdd7d1c83d SITL: added Morse rover follow example script 2018-12-07 10:31:04 +09:00
Andrew Tridgell 64abd7f318 SITL: added follow example for rover 2018-12-07 08:35:15 +11:00
Andrew Tridgell 9b9ce2b1a2 SITL: removed Morse position offset
this allows for creating swarms of vehicles with different start
locations
2018-12-07 08:35:15 +11:00
Andrew Tridgell 824d619ab6 SITL: allow override of Morse sensors and control ports 2018-12-07 08:35:15 +11:00
Andrew Tridgell 234e3b97ef SITL: don't include vehicle name in Morse string seach
this allows for multiple vehicles with any name to output
2018-12-07 08:35:15 +11:00
Andrew Tridgell 997d07b694 SITL: use replace.h in SIM_Morse
fixes build on MacOS
2018-12-06 13:32:09 +11:00
Andrew Tridgell debea191c9 SITL: allow sensors not to be present in Morse 2018-12-04 20:49:40 +11:00
Andrew Tridgell e569e3e1e6 SITL: added parameters for laser scanner example 2018-12-04 18:29:41 +11:00
Andrew Tridgell 8d86b6fbee SITL: added support for laser scanner for Morse 2018-12-04 18:29:41 +11:00
Andrew Tridgell 480abeda3e SITL: improved rover_scanner example 2018-12-04 18:29:41 +11:00
Andrew Tridgell 6786e4b5fc SITL: added rover_scanner.py example for Morse 2018-12-04 18:29:41 +11:00
Andrew Tridgell f52af1fc40 SITL: added parsing of variable length vectors for Morse
used for laser scanner
2018-12-04 18:29:41 +11:00
Andrew Tridgell f0036c59d7 SITL: added rover parameters for morse example 2018-12-04 13:02:29 +11:00
Andrew Tridgell 62c26ec5ff SITL: added parameters for Morse quad 2018-12-04 09:44:50 +11:00
Andrew Tridgell a4f388e0f3 SITL: improved Morse socket handling 2018-12-04 09:44:50 +11:00
Andrew Tridgell 505bc2b1fc SITL: added quadcopter example script for Morse 2018-12-04 09:44:50 +11:00
Andrew Tridgell adb45c261f SITL: support quad simulation in Morse 2018-12-04 09:44:50 +11:00
Andrew Tridgell c8c54b369a SITL: added example script for Morse 2018-12-04 09:44:50 +11:00
Andrew Tridgell fea5060429 SITL: added Morse simulation backend 2018-12-04 09:44:50 +11:00
Andrew Tridgell 9257d29717 SITL: fixed frame_property build error with older C++ compilers 2018-11-30 11:03:09 +11:00
Andrew Tridgell e3cd081064 SITL: support up to 12 actuators with RealFlight8
the new beta release supports up to 12 channels
2018-11-27 13:49:41 +11:00
Peter Barker 3296b1c7f7 SITL: correct use of uninitialized values in simulated gimbal 2018-11-25 03:13:21 +00:00
Andrew Tridgell 635540b4d6 SITL: simulate Solo gimbal parameter handling
this allows us to get into running state
2018-11-24 11:00:37 +11:00
Andrew Tridgell 2a08dc73b7 SITL: added some debug code to simulated Solo gimbal 2018-11-24 11:00:37 +11:00
Andrew Tridgell 0536a3c4c6 SITL: added SIM_WOW_PIN 2018-11-09 14:35:14 +11:00
Peter Barker 82df40f464 SITL: add override keyword where required 2018-11-08 11:30:12 +11:00
Andrew Tridgell 366361f0bb SITL: fixed running of example programs 2018-11-07 07:35:45 +11:00
Peter Barker 537a7e0727 SITL: correct comment on sending gimbal messages 2018-10-23 11:58:04 +11:00
Andrew Tridgell feea73ee1a SITL: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
IamPete1 e31f98157b SITL: sailboat add matlab VPP tool 2018-10-09 16:27:10 +09:00
IamPete1 1792438660 SITL: sailboat sim small changes 2018-10-09 16:27:10 +09:00
Randy Mackay b7c88da67c SITL: sailboat fixes from peer review 2018-09-26 12:00:13 +09:00
Randy Mackay 804305aa2b SITL: add simple sailboat simulator 2018-09-26 12:00:13 +09:00
Pierre Kancir 5b0ae42725 SITL: limit on_ground() check to militer accuracy to prevent bouncing 2018-09-07 10:22:34 +10:00
Peter Barker 3e9294a2ae SITL: eliminate float-equals issues 2018-08-28 09:54:47 +10:00
Pierre Kancir a5e2f96a59 SITL: Better gripper sim options 2018-08-27 14:39:49 +10:00
Pierre Kancir 37f7cc4bcf SITL: rearrange Grippers and Sprayers in SITL 2018-07-31 23:34:43 +10:00
Andrew Tridgell 128ea42286 SITL: added SIM_RC_CHANCOUNT parameter 2018-07-24 19:44:03 +10:00
Ebin 89ffa94427 SITL: Removed redundant variables and modified/deleted commented lines 2018-07-20 14:41:32 +10:00
Ebin 21445e91be SITL: new balancebot physics simulation 2018-07-20 14:41:32 +10:00
Andrew Tridgell 98f87f5087 SITL: fixed gimbal for tailsitter 2018-07-20 14:21:06 +10:00
Andrew Tridgell d1f67f6ded SITL: added diagonal, off-diagonal and orientation of SITL compass 2018-07-18 16:07:19 +10:00
Patrick José Pereira 2ba6f64281 SITL: Remove unused variables
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-17 20:25:22 +09:00
Andrew Tridgell dc54babe41 SITL: setup more defaults with flightaxis
with copters now you only need to set FRAME_CLASS to fly
2018-07-13 10:19:01 +10:00
Peter Barker 6d6366df48 SITL: Sim_Vicon: set CLOEXEC on vicon file decsriptor 2018-06-29 21:53:14 +10:00
Ebin 10914d88b7 SITL: all unchanged variables declared const in BalanceBot::update() 2018-06-28 21:55:20 +09:00
Ebin 3a171c56b5 SITL: Added BalanceBot 2018-06-28 21:55:20 +09:00
Patrick José Pereira b66b4775bc SITL: Replace find_object with SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-27 14:59:33 -07:00
Patrick José Pereira ae378f0fb3 SITL: Use reinterpret_cast with AP_Param::find_object
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira f68b07df1f SITL: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Andrew Tridgell e455958c87 SITL: fixed build with new vicon_position_estimate message extension 2018-06-19 09:36:03 +10:00
Peter Barker 19fd133ef8 SITL: correct compilation for transitive include fail 2018-05-29 14:42:02 +10:00
Pierre Kancir 0fd8d94924 SITL: Fix printf format warning 2018-05-26 09:13:29 +09:00
Peter Barker a137afd11b SITL: add singleton 2018-05-23 18:36:50 +10:00
Andrew Tridgell 0078a68fbb SITL: fixed segv when running examples under SITL 2018-05-15 13:36:41 +10:00
Andrew Tridgell 4ba5a368ff SITL: adjust vicon simulated lag approach 2018-05-15 10:42:52 +09:00
Peter Barker c92554001f SITL: send buffer rather than mavlink msg on channel 2018-05-14 11:46:43 +10:00
Eugene Shamaev d086edc762 SITL: add wind type parameters 2018-05-02 07:32:25 -07:00
Peter Barker 767f81265b Sub: correct compilation under clang++ on MacOSX 2018-04-30 13:04:03 +09:00
Peter Barker e7b5978d8d SITL: use a 16-bit mask for GPIO out 2018-04-18 20:31:55 +09:00
Peter Barker 871661c65f SITL: SIM_Vicon: use existing channel for packing messages
Also correct sending of Vicon message; too many bytes were sent
2018-04-02 09:23:27 +09:00
Peter Barker 994e3e7092 SITL: SIM_Vicon: fix compiler warning 2018-03-29 16:45:34 +09:00
Peter Barker 08189e0754 SITL: add parameter for Vicon observation delay 2018-03-27 20:28:53 +09:00
Peter Barker dfcf4788d3 SITL: add vicon-over-mavlink support 2018-03-27 20:28:52 +09:00
Peter Barker 0d77cfb6c3 SITL: method to return current vehicle location 2018-03-27 20:13:03 +09:00
Eugene Shamaev 6954a0035a SITL: SITL of several airspeed sensors 2018-03-09 11:27:20 -08:00
Andrew Tridgell d75e47a4d8 SITL: cope with cygwin64 2018-03-02 17:11:31 +11:00
Peter Barker 1915244960 SITL: correct compiler warning
In file included from ../../libraries/SITL/SIM_last_letter.cpp:19:
../../libraries/SITL/SIM_last_letter.h:74:17: warning: private field
'frame_str' is not used [-Wunused-private-field]
    const char *frame_str;

SITL: correct compiler warning

In file included from ../../libraries/SITL/SIM_Sprayer.cpp:19:
../../libraries/SITL/SIM_Sprayer.h:55:14: warning: private field
'start_time_us' is not used [-Wunused-private-field]
    uint64_t start_time_us;

SITL: correct compiler warnings

In file included from ../../libraries/SITL/SIM_Gripper_Servo.cpp:19:
../../libraries/SITL/SIM_Gripper_Servo.h:56:10: warning: private field
'zero_report_done' is not used [-Wunused-private-field]
    bool zero_report_done = false;

SITL: correct compiler warnings

In file included from ../../libraries/SITL/SIM_ADSB.cpp:19:
../../libraries/SITL/SIM_ADSB.h:49:28: warning: private field 'fdm' is
not used [-Wunused-private-field]
    const struct sitl_fdm &fdm;
2018-03-02 09:26:37 +09:00
Peter Barker 6a862c6e24 SITL: make home location parsing verbose
Given we don't fail to start SITL if the home location fails to parse,
we should at least make the user very aware that their home location
string is bad.

This commit makes failures verbose, and outputs the parsed location
values rather than regurgitating the location string the user supplied;
it was very misleading in that the location could simply fail to parse
and thus be unused.
2018-02-21 23:51:56 +10:00
Andrew Tridgell 6a89fdf268 SITL: use AP_Declination for magnetic tables 2018-02-08 17:36:33 +11:00
Nicholas Engle 1103e92884 SITL: Add SIM_WIND_DIR_Z parameter for SITL
This controls the vertical pitch of the 3d wind vector, allowing futher control of the wind
using systems like dronekit. This change directly effects the calcuation of the wind vector
2018-02-05 16:38:53 -08:00
Guglie 4eaa1f17df SITL: fix pthread_setname_np to build on mac 2017-12-04 21:14:29 +11:00
Andrew Tridgell 917d9842c4 SITL: support AHRS_ORIENTATION in SITL
this allows for tailsitters in RealFlight
2017-11-23 14:26:11 +11:00
Patrick José Pereira 28ff272017 SIM_Submarine: Solve problem when frame is above water level
Fix bluerobotics/ardusub/issues/128

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Co-Authored-By: jaxxzer <jwalser90@gmail.com>
2017-11-22 12:38:14 -08:00
Andrew Tridgell 964d64a623 SITL: adjust FlightAxis defaults
and map 0,0 to CMAC location, to improve how SITL works in
MissionPlanner
2017-11-19 18:24:08 +11:00
Andrew Tridgell cdd350f93e SITL: fixed build under cygwin 2017-11-18 21:23:15 +11:00
Peter Barker 62f7acff52 SITL: reduce max accel of simulated rover 2017-10-26 14:45:19 +11:00
hiro2233 7d304073ed SITL: fixed include case sensitive
On case sensitive cygwin feature enabled, this build ok.
2017-10-25 20:59:55 +11:00
Andrew Tridgell c5cd1b873c SITL: use thread for FlightAxis comms
this allows us to run SITL at a much higher framerate than RF can
provide, and results in the EKF being much happier
2017-10-21 11:57:59 +11:00
Andrew Tridgell 74265f523a SITL: support -roll180 option to frames 2017-10-10 10:57:38 +11:00
Mark Whitehorn dedb40ce0b SITL: add parameter to simulate reversed pitot tube order 2017-09-22 18:21:09 +10:00
mirkix 93b3970141 SITL: Add tilthvec frame 2017-09-18 21:20:39 +10:00
Andrew Tridgell 7ade37bd4e SITL: added SIM_GPS_ALT_OFS
this is used to give a bad GPS height in SITL, which is very useful for
testing origin vs home issues
2017-09-18 10:24:45 +10:00
Peter Barker 85ebe923b6 SITL: avoid FPE when running fly.ArduPlane
Program received signal SIGFPE, Arithmetic exception.
__expf_finite () at ../sysdeps/x86_64/fpu/e_expf.S:132
132     ../sysdeps/x86_64/fpu/e_expf.S: No such file or directory.
(gdb) u
2017-09-06 20:22:52 +10:00
Andrew Tridgell 4aa068d63d SITL: added simple launch sim for plane
allow for bungee, catapult and hand launches
2017-08-29 07:35:04 +10:00
Michael du Breuil 4dbe282121 SITL: Add airspeed failure parameters 2017-08-10 20:15:35 +10:00
Andrew Tridgell a7967e00e4 SITL: added SIM_GPS_LOCKTIME parameter 2017-07-14 15:02:12 +10:00
Andrew Tridgell 907534d55f SITL: added dspoiler support 2017-07-03 11:17:42 +10:00
Pierre Kancir b176ba53d7 SIM_Aircraft: move advance in time from update_position to time_advance 2017-06-07 20:29:02 +10:00
Pierre Kancir 579f655e76 SIM_Aircraft: change define in favor of static constexpr 2017-06-07 20:29:02 +10:00
Pierre Kancir 148e84320b SITL: Sim_aircraft correct style 2017-06-07 20:28:25 +10:00
Pierre Kancir 599e3d7b83 SITL: make range finder a standalone sitl plugin 2017-06-07 20:28:25 +10:00
murata c21b586ccc SITL: add dodeca-hexa support 2017-05-27 14:21:13 +09:00
Andrew Tridgell 47b79eb72d SITL: expose home location 2017-05-08 13:38:10 +10:00