Commit Graph

856 Commits

Author SHA1 Message Date
Andrew Tridgell 7c2d13c571 SITL: added simulation of pressure altitude for multicopter
this gives us a ceiling of 5.4km above sea level for the default
copter
2020-06-05 11:35:53 +10:00
bugobliterator 95493e4569 SITL: add support for per mag calibration 2020-06-05 09:38:40 +10:00
Alexander Maryanovsky d73043fc2f SITL: get_wall_time_us() to use a monotonic clock on non-Windows systems 2020-06-04 10:05:22 +10:00
Andrew Tridgell e4596efe9b SITL: added SIM_RATE_HZ
this allows the physics step size to be changed while flying the
internal models, which allows for lower CPU usage
2020-06-03 18:11:06 +10:00
Randy Mackay 31763424a3 SITL: speed up vicon messages to avoid EKF timeouts during resets 2020-06-02 08:33:42 +09:00
Randy Mackay c8f6cb233b SITL: vicon supports sending vision-speed-estimate
SIM_VICON_TMASK controls which of the 3 supported messages are sent
SIM_VICON_VGLI_X/Y/Z allows introducing a velocity glitch
2020-06-02 08:33:42 +09:00
Randy Mackay 3a209d5d84 SITL: SIM_Vicon loses unused obs_elements structure 2020-06-02 08:33:42 +09:00
Iampete1 141ab622a3 SITL: examples: JSON: MATLAB: add pnet linux compiled 2020-05-29 08:25:24 +10:00
Iampete1 13965133b0 SITL: examples: JSON: add MATLAB example 2020-05-29 08:25:24 +10:00
Iampete1 fa712082d7 SITL: examples: add JSON readme 2020-05-29 08:25:24 +10:00
Iampete1 ce0cb9660f SITL: examples: add MATLAB TCP/UDP/IP Toolbox 2020-05-29 08:25:24 +10:00
Iampete1 0c6efa5f26 SITL: add JSON backend 2020-05-29 08:25:24 +10:00
Peter Barker 5bbb02e03b SITL: add support for simulated proximity sensors 2020-05-22 17:06:16 +10:00
Mark Whitehorn a54f286c1b SITL: fixed running of example programs 2020-05-16 11:06:35 +10:00
Randy Mackay b2dd6446c8 SITL: add comment to SIM_VICON 2020-05-15 10:07:52 +09:00
Randy Mackay 366d03a533 SITL: add VICON_YAWERR
this allows simulating an error in the camera's reported yaw
2020-05-15 09:22:07 +10:00
Randy Mackay bf9ee4ada8 SITL: remove unused MAG_ERROR and VICON_HSTLEN params 2020-05-15 09:22:07 +10:00
mhefny 9f56b656e0 SITL: Revamp Examples to support multiple drones 2020-05-14 18:05:16 +10:00
mhefny 5a64156862 SITL: SITL-Webots timing is received from Webots only 2020-05-14 18:05:16 +10:00
Randy Mackay d8bc197d35 SITL: add VICON_GLIT_XYZ, FAIL and YAW
glitches are in meters in vicon's frame
fail disables sending of vision-position-estimate messages
yaw is the vicon's heading in degrees.  i.e. if vicon's "forward" is
pointing to the east, yaw should be set to 90
2020-04-28 12:31:14 +09:00
Arash Negahdar 98dfc69887 SITL: Don't start scrimmage from ArduPilot 2020-04-28 11:09:51 +10:00
Mark Whitehorn db1c7d9bdd SITL: add support for AHRS_ORIENTATION=ROTATION_CUSTOM 2020-04-28 10:57:26 +10:00
bnsgeyer ce171107a3 SITL: update tradheli dynamics model for SITL 2020-04-28 10:45:33 +10:00
Willian Galvani cf6f5502a4 SITL: Make Sub buoyancy a parameter 2020-04-27 12:48:52 -07:00
Mark Whitehorn dbfbe50737 SITL: update flightaxis defaults 2020-04-22 12:36:03 +10:00
Peter Barker 653b554a31 SITL: add simulated mavlink-attached rangefinder 2020-04-21 20:44:59 +10:00
Peter Barker cda0d14f57 SITL: add documentation for SITL and SMOO message 2020-04-21 09:48:43 +10:00
Peter Barker ec7bde2be4 SITL: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
Randy Mackay 3ccb3c69a6 SITL: add vicon position offsets 2020-04-14 10:28:03 +10:00
Andrew Tridgell 778532d556 SITL: added SIM_GPS2_HDG and rationalise the GPS position variables 2020-04-11 21:14:31 +10:00
Samuel Tabor 15cef55e97 SITL: Make thermal drift relative to 100m alt to avoid so much change with wind speed and direction." 2020-04-08 09:11:54 +10:00
Samuel Tabor ae27f96361 SITL: Make soaring thermals slanted. 2020-04-08 09:11:54 +10:00
Samuel Tabor 5082c9be8b SITL: Add plane-soaring type, including parameters, mission, simulated thermals and glider sim settings. 2020-04-08 09:11:54 +10:00
Peter Barker 59dfaad749 SITL: provide method to retrieve desired speedup 2020-04-07 14:51:32 +10:00
Peter Barker 64c973b592 SITL: add documentation for AirSim ASM1,ASM2 log messages 2020-04-06 10:46:45 +10:00
Andrew Tridgell 09b272b840 SITL: added SIM_LED_LAYOUT parameter
for layout of simulated LEDs
2020-02-27 13:12:26 +11:00
Andy Piper 2033cf3b4a SITL: add SIM_VIB_MOT_MULT to allow motor noise to have a different amplitude to the fixed frequency noise 2020-02-22 11:15:37 +11:00
Andy Piper c0c61660b0 SITL: quadplane updates 2020-02-22 11:15:37 +11:00
ashvath100 1c77df9169 SITL: Rename morse-rover to morse-skid 2020-02-21 08:23:54 +09:00
Siddharth Purohit 8a7dcafa0f SITL: add parameter MAG_DEVID in SITL 2020-02-19 13:59:53 +09:00
Rishabh 08f27f7668 SITL: Added cwx motor setup for hexa, octa and octaquad 2020-02-19 11:28:25 +09:00
mhefny b935aa3355 SITL:adding slow-motion option argv -d for Quad & Tricopter controllers 2020-02-18 11:31:50 +11:00
mhefny 9cb3662db6 SITL:Webots-better time sync 2020-02-18 11:31:50 +11:00
murata 147a940451 SITL: Indicates that the message is SIM only 2020-02-18 11:23:52 +11:00
Mirko Denecke 899335e30b SITL: fix DisplayName and description of parameter 2020-02-18 09:29:47 +11:00
Mirko Denecke 2f435d5099 SITL: fix DisplayName and description of parameter 2020-02-18 09:29:15 +11:00
ashvath 66f123e2b4 SITL: Example for skid rover 2020-02-13 09:04:32 +11:00
ashvath 774b79e632 SITL: Parameters for skid rover 2020-02-13 09:04:32 +11:00
ashvath 5e2b693be4 SITL: Parameters for steering/throttle rover 2020-02-13 09:04:32 +11:00
ashvath 677dec5894 SITL: example for steering/throttle rover 2020-02-13 09:04:32 +11:00
ashvath 71f8c7cabb SITL: support for steering/throttle rover 2020-02-13 09:04:32 +11:00
Peter Barker 0cf747cdbe SITL: remove RCMAP_ parameters from SilentWings parameters
These files contain a lot of values which happen to be the defaults.
These are some of them.
2020-02-10 13:55:05 +11:00
Rishabh dc662a56b2 SITL: Added DJI Hexa and Octa for SITL 2020-01-29 16:57:23 +09:00
Andrew Tridgell fb3496b63b SITL: added SIM_GPS2_POS
and re-arrange two sets of GPS parameters to be arrays
2020-01-26 16:55:17 +11:00
Rajat Singhal 6bbf6f380f SITL: Add rover support for Airsim 2020-01-23 15:12:50 +11:00
Andrew Tridgell dc80df23e9 SITL: added betaflight-rev-x frame 2020-01-16 19:13:13 +11:00
Andrew Tridgell 6218537ff7 SITL: fixed segv in SITL RCProtocolTest 2020-01-09 17:38:52 +11:00
Peter Barker 2f60f783d4 SITL: add simulated Frsky devices 2020-01-08 23:53:48 +11:00
Rajat Singhal 552191925b SITL: Add OA BendyRuler params for Airsim Lidar, rename file 2020-01-08 09:10:54 +09:00
Peter Barker 4cc7df8e15 SITL: emit hit-ground via mavlink
This lets autotest look for it
2020-01-01 22:10:43 +11:00
Andy Piper a6a020b3c7 SITL: record throttle value instead of motors on/off 2019-12-31 10:34:02 +11:00
Andrew Tridgell 9b4764eb1f SITL: fixed airsim example scripts 2019-12-17 15:40:00 +11:00
Andrew Tridgell 061d778bfd SITL: improved AirSim quadX tuning
and move params to normal location, so they are found with
sim_vehicle.py
2019-12-17 15:40:00 +11:00
Andrew Tridgell d657fed34a SITL: fixed accuracy of lat/lon in AirSim 2019-12-17 15:40:00 +11:00
Mark Whitehorn 76b985fc9c SITL: only recalculate ahrs rotation matrix if necessary 2019-12-17 11:42:40 +11:00
Mark Whitehorn ab33679124 SITL: include ahrs_orientation in airspeed calculation 2019-12-17 11:42:40 +11:00
Andy Piper c807267bab SITL: add rpm-based motor noise per-motor to gyros and accels
convert multicopter thrust to rpm per motor
2019-12-17 10:07:06 +11:00
Rajat Singhal d34ccec084 SITL: Fix sensor data calculation in Airsim 2019-12-17 08:11:27 +11:00
Peter Barker deadafd7c7 SITL: use https:// scheme for ardupilot URLs 2019-12-10 07:53:46 +11:00
Ebin 3daebe974e SITL: Fix for unrealistic speed and acceleration in Balance Bot 2019-12-09 09:00:31 +11:00
Rajat Singhal a1e1558709 SITL: Test launch file for ROS multi-vehicle sim 2019-12-05 08:06:42 +08:00
Rajat Singhal 241d406ef3 SITL: Example script for ROS multi-vehicle with Airsim 2019-12-05 08:06:42 +08:00
Rajat Singhal 6a075b2556 SITL: Fixes, improvements to Airsim multi-vehicle script
1. Kill all running Copter binaries while exiting
2. Set default GCS IP address
3. Fix mcast ip address for different platforms
4. Set variable for number of vehicles
2019-12-05 08:06:20 +08:00
Willian Galvani 06e71b061a SITL: Sub: add square curve model to thruster 2019-12-03 10:55:08 -05:00
Andrew Tridgell 7b203f6816 SITL: added SIM_MAG_SCALING for testing scale factor errors 2019-12-03 20:48:23 +11:00
Peter Barker d332118b05 SITL: increase Wasp reading frequency
The driver requires a reading each time it is called (20Hz)
2019-12-02 19:07:03 +11:00
Michael du Breuil feead0a42c SITL: ADSB: Don't hard code the emitter type 2019-11-26 11:57:29 +11:00
Peter Barker 326ba5b974 SITL: support for virtual hardware safety switch 2019-11-26 10:14:11 +11:00
Andrew Tridgell 4d50996780 SITL: added MegaSquirt EFI simulation 2019-11-17 20:10:54 +11:00
Patrick José Pereira e52fc375c4 Sub: Add fake sea floor and update range
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-11-12 10:02:29 -08:00
Willian Galvani 168a182310 SITL: Sub: add angular drag based on a laminar, external flow 2019-11-11 07:39:57 -08:00
Willian Galvani 393b018f31 SITL: Sub: Fix rotational physics logic 2019-11-11 07:39:57 -08:00
Willian Galvani fbbfbe0103 SITL: Sub: Use proper phyisics for thrusters 2019-11-11 07:39:57 -08:00
Willian Galvani 9c2ffed876 SITL: Submarine: add torque for static stability
Subs are statically stable regarding pitch and roll.
This patch reproduces this in SITL
2019-11-11 07:39:57 -08:00
Willian Galvani 394aff6535 SITL: add deadzones to Sub thrusters PWM signals 2019-11-11 07:39:57 -08:00
Willian Galvani 1e2340fbb4 SITL: Fix buoyancy direction for earth-frame
Previously the sub would just go upwards, so rolling it 180º caused it to sink
2019-11-11 07:39:57 -08:00
Willian Galvani e190d99bc6 SITL: Add 6dof frame for Sub 2019-11-11 07:39:57 -08:00
Willian Galvani cc45aeb526 SITL: get rid of frame_vectored.h for Sub 2019-11-11 07:39:57 -08:00
Peter Barker c1acdc4994 SITL: increase simulated rangefinder frequency to 5Hz 2019-11-09 08:01:53 +11:00
Peter Barker 7b046c8b75 SITL: improve testing instructions for simulated rangefinders 2019-11-09 08:01:53 +11:00
Peter Barker df0233a7d1 SITL: add support for simulated serial rangefinders
SITL: add base class for serial rangefinder simulators

SITL: add Benewake rangefinder simulator

SITL: add support for simulated LightWareSerial rangefinder

SITL: add support for simulated Lanbao rangefinder

SITL: add support for simulated BLping rangefinder

SITL: add support for simulated LeddarOne rangefinder

SITL: add support for simulated uLanding rangefinders

SITL: add support for simulated MaxsonarSerialLV rangefinders

SITL: add support for simulated Wasp rangefinders

SITL: add support for simulated NMEA rangefinders
2019-11-08 20:12:28 +11:00
Peter Barker 990273a778 SITL: add accessor for rangefinder range 2019-11-08 20:12:28 +11:00
Peter Barker 270831d70d SITL: add bidirectional communication for simulated serial devices 2019-11-08 20:12:28 +11:00
Peter Hall 3d8a5de1f0 SITL: ADSB: pass home location not string 2019-11-05 11:46:59 +11:00
Peter Barker acd03c6636 SIM_AirSim: correct format string issue 2019-11-05 11:29:08 +11:00
Andrew Tridgell ae289052e9 SITL: added LED state 2019-11-04 13:01:59 +11:00
Peter Barker a08443ff19 SITL: break out a SIM_SerialDevice base class, use it for SIM_Vicon 2019-10-29 18:41:13 +11:00
Patrick José Pereira e18883fddf SITL: Add missing shove forces in SIM_Submarine
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-10-29 09:44:24 +11:00
Tom Pittenger bbd6f3aa6c SITL: morse simulator should generate packets from same vehicle sysid 2019-10-21 14:29:30 +09:00
Peter Barker 47fbf70e85 SITL: create SITL tonealarm files to hold enable parameter 2019-10-16 16:00:35 +11:00
Peter Barker 32ec6d7e9a SITL: add a simulated buzzer 2019-10-16 16:00:35 +11:00
Ebin f6c7ac88d0 SITL: Yaw rate calculation uses wheel offset 2019-10-07 07:31:53 +11:00
mhefny 92d55fa126 SITL: removed unnecessary files of webots 2019-09-30 04:46:38 +10:00
mhefny 8310058c8c SITL: adding Tricopter model in Webots 2019-09-25 13:34:47 +01:00
Andrew Tridgell d2e75717b8 SITL: added a MotorBoat class
a sailboat with zero sail area
2019-09-23 17:22:01 +10:00
Andrew Tridgell 3d9f393f4b SITL: added SIM_LOOP_DELAY parameter
this allows us to test high CPU load conditions by adding a delay to
each loop
2019-09-19 18:25:20 +10:00
mhefny 375510ecc2 SITL: adding wind simulation in Webots 2019-09-12 13:22:26 +10:00
mhefny bfb7e3af3b SITL: sending wind data to Webots controller 2019-09-12 13:22:26 +10:00
Rajat Singhal 5147b607c0 SITL: Correct Airsim params 2019-09-11 08:28:28 +10:00
Randy Mackay d4b047fc1f SITL: Gripper_EPM compiler warning resolved by using float and fabsf 2019-09-10 09:15:56 +10:00
Randy Mackay 1fd7618238 SITL: remove unused time_diff member 2019-09-10 09:15:56 +10:00
Rajat Singhal 80bbadf9ca SITL: AirSim: Store last timestamp only
Also change the datatype of deltat
2019-08-29 08:32:19 +10:00
Rajat Singhal 86a70e5797 SITL: Remove redundant timestep in Airsim backend 2019-08-29 08:32:19 +10:00
Rajat Singhal c056548f0d SITL: Enable Arming Checks in airsim-copter params 2019-08-29 08:32:19 +10:00
Michael du Breuil fe279b03b6 SITL: Directly include needed headers 2019-08-28 13:13:03 +10:00
Andrew Tridgell 4ca48f225d SITL: send vicon data at 70ms intervals
this matches the max rate that EK2 will accept this data
2019-08-26 12:27:31 +10:00
Randy Mackay 257152aa55 SITL: sailboat motor enabled only for sailboat-motor frame 2019-08-21 19:34:13 +09:00
Randy Mackay 0ce1ce9c4f SITL: minor format changes for sailboat 2019-08-21 19:34:13 +09:00
mhefny 1e41f7cc61 SITL: add Webots support and examples 2019-08-19 19:36:25 +10:00
Rajat Singhal ad9093251e SITL: Remove unused includes 2019-08-15 20:03:31 +10:00
Rajat Singhal 4e847342b1 SITL: Add license info in Airsim files 2019-08-15 20:03:31 +10:00
Peter Barker 169013cae2 SITL: allow starting location to come from parameters 2019-08-15 18:00:35 +10:00
Peter Barker 24405f1b23 SITL: correct and add comment 2019-08-15 18:00:35 +10:00
Peter Barker f7b47679bb SITL: remove home_str from constructor 2019-08-15 15:16:11 +10:00
Peter Hall 4afcc9c289 SITL: sailboat allow motor sailing 2019-08-14 09:26:01 +09:00
Anthony Velte 92a9ab6c6d SITL: Add scrimmage simulator support 2019-08-13 10:07:26 +10:00
Peter Hall 2a3676003a SITL: sailboat add tide 2019-08-07 14:34:07 +09:00
Peter Hall 90bf224e7f SITL: sailboat add wave simulation and parameters 2019-08-07 14:34:07 +09:00
Andrew Tridgell 9672dce335 SITL: switch vicon simulation to use VISION_POSITION_ESTIMATE
this is a more commonly used message
2019-08-05 13:58:08 +10:00
Rajat Singhal bd9120b725 SITL: Add script for multi-vehicle sim with AirSim 2019-08-04 07:57:46 +10:00
Rajat Singhal 8e7ab23b4f SITL: Add RC support for Airsim
Adds variable length float array parsing
2019-08-04 07:57:46 +10:00
Rajat Singhal 2954f2b4d0 SITL: Delete Airsim Readme
Wiki Page has been added - http://ardupilot.org/dev/docs/sitl-with-airsim.html
2019-08-04 07:57:46 +10:00
Rajat Singhal ad5d3cb9f1 SITL: Add Airsim quadx lidar params 2019-08-04 07:57:46 +10:00
Rajat Singhal 2d25971801 SITL: Add Lidar Sensor for Airsim
Adds variable length array of vector3f parsing
2019-08-04 07:57:46 +10:00
Tom Pittenger 2dba187d30 SITL: Morse scanner lidar to use larger MAVLink msg instead of raw data squeezed into 8 sectors 2019-08-02 09:50:13 -06:00
Tom Pittenger 3f99def25a SITL: fix Morse simulator camera and changed default mission to indoor 2019-08-02 09:50:13 -06:00
Leonard Hall fb790cadda Tools: update parameter files after PID upgrade 2019-07-25 17:38:15 +09:00
Peter Barker 81222fbde0 SITL: correct RC2_REV to RC2_REVERSED in comment 2019-07-24 13:36:26 +09:00
Josh Prochaska 6440069e7c SITL: include replace.h for AirSim to fix missing memrchr() on MacOS 2019-07-19 15:43:39 +10:00
Rajat Singhal 825c027f95 SITL: Added initial Airsim QuadX parameter file 2019-07-17 07:26:50 +10:00
Rajat Singhal 864f99f247 SITL: Added Readme for Airsim setup & usage 2019-07-17 07:26:50 +10:00
Rajat Singhal ffbfdbf1df SITL: Added support for Airsim simulator
Supports Lock-Step Scheduling, has JSON sensor packet parsing
2019-07-17 07:26:50 +10:00
Andrew Tridgell 5c3afa2621 SITL: use AP_Math/definitions.h 2019-07-13 11:05:57 +10:00
Grant Morphett 2ce7955614 SITL: Create gps_hdt_enabled varible for enable/disable HDT GPS sentence 2019-07-13 11:05:57 +10:00
Peter Barker a966c75deb SITL: remove unused forward declaration of AP_Logger 2019-07-09 10:57:20 +10:00
Peter Barker e01ea2f5f9 SITL: support a count of baros 2019-07-09 10:01:23 +10:00
U-REDMOND\akolobov 3330b62d3c SITL: aded support for SilentWings simulator 2019-07-08 09:32:59 +10:00
Andrew Tridgell 626c632859 SITL: fixed pitch constraint on fixed wing takeoff
fixes issue with jet takeoff
2019-07-05 20:12:22 +10:00
Rajat Singhal 82413a1528 SITL: JSBSim: Fix comments 2019-07-03 23:58:22 -07:00
Andrew Tridgell 2eb09b2910 SITL: simple implementation of a fast jet
just increase the weight and the rest can be done with params
2019-07-03 08:05:09 +10:00
Michael du Breuil b7bca441e5 SITL: Fix a number of includes that were coming in via AP_Airspeed 2019-06-27 14:56:21 +10:00
Peter Hall 5839c1ebf6 SITL: Sailboat: write rpm and airspeed for windvane backends 2019-05-28 08:35:58 +09:00
Rajat Singhal 8097b0ede3 SITL: Gazebo: Fixed comment, typos 2019-05-23 08:23:37 +09:00
Rajat Singhal 2c519d5176 SITL: Fix to sync to JSBSim simulation time
SITL: Additional fix to remove time-lag in JSBSim
2019-05-10 17:12:52 +10:00
Rajat Singhal dedb7e108f SITL: Added <time> tag to JSBSim output directive
Instructs JSBSim to transmit current simulation time which is used to sync with Ardupilot
2019-05-10 17:12:52 +10:00
Rajat Singhal 2317e73e0b SITL: JSBSim: Use rate_hz to specify timestep 2019-05-10 17:12:52 +10:00
Rajat Singhal 732f2e7a2e SITL: Change JSBSim mode to Batch mode, specify nice sleeptime
Previously it was run in realtime mode which doesn't support iterate command. Without setting sleeptime, defaults to 0.01s which slows down a lot
2019-05-10 17:12:52 +10:00
Peter Barker dd62489f5e AC_PrecLand: stop ignoring return values on methods 2019-05-09 13:03:49 +10:00
Peter Barker 6939a9fa91 SITL: add capability to twist the aircraft
This makes the EKF very, very unhappy, but is useful for compass
calibration testing
2019-04-23 10:06:17 +10:00
Pierre Kancir 92822a7f01 SITL: fix header 2019-04-23 09:20:43 +10:00
Andrew Tridgell e18f40cc08 SITL: added IMU failure masks 2019-04-22 14:56:30 +10:00
Andrew Tridgell ac7e969aae SITL: improve airspeed in FlightAxis for RF8
use 3D wind to get airspeed along X axis of aircraft
2019-04-15 10:07:54 +10:00
Andrew Tridgell d57ea43ea6 SITL: fixed crash in example code run 2019-04-09 12:50:17 +10:00
Pierre Kancir ebdcfdf65b SITL: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Paul Riseborough 8ac8c7285b SITL: Add parameter for optical flow sensor noise 2019-04-02 10:51:12 +11:00
Patrick José Pereira ab6b84e876 SITL: Fix typo in Sub
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-04-02 07:59:53 +11:00
Patrick José Pereira 8bb0772224 SITL: Add drag simulation in Sub
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-04-02 07:59:53 +11:00
Peter Barker 4c9651dbfd SITL: use enum class for AltFrame enumeration 2019-03-19 10:31:18 +11:00
Peter Barker 4db011f530 SITL: add SIM_SHOVE_* options to shove the simulated vehicle
The parameter values are time in milliseconds and body-frame
acceleration in m/s/s

So to test throw mode:
 mode throw
 param set SIM_SHOVE_Z -30
 arm throttle
 param set SIM_SHOVE_TIME 500
2019-03-12 11:09:37 +11:00
Andrew Tridgell b1eeaa3019 SITL: fixed segv without SITL object 2019-03-04 11:00:40 +11:00
Pierre Kancir 04bc267a61 SITL: add precland object
add position for precland object
add refresh rate
add alt and lateral range
add diffusion range
2019-03-01 20:28:22 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 0b9d10c0f9 SITL: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Simon Schopferer 6beac98d4a fixed conversion of airspeed from ft/s to knots as defined in latest JSBSim versions 2019-02-26 09:14:42 +11:00
Peter Barker 166291cfef SITL: add missing override keywords 2019-02-22 15:01:09 +00:00
Peter Barker 44e89a1cd8 SITL: include stdio for some printfs 2019-02-15 08:15:45 +11:00
Peter Barker 44bc035f7b SITL: allow testing of throttle-goes-to-low-fixed-value rc failsafes 2019-02-14 11:49:59 +11:00
Peter Barker ae03ccf2ba SITL: enable updating of external payload on SIM_Plane 2019-02-13 09:25:27 +09:00
Tom Pittenger a4e91e196f SITL: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Peter Barker 9e7154ccb3 SITL: enable updating of external payloads for SIM_Rover 2019-02-09 11:02:22 +09:00
Peter Barker badfd1d559 SITL: name parameters being passed to ICEngine contructor 2019-02-08 12:23:57 -07:00
Andrew Tridgell 40babb1172 SITL: support 3 more X quad motor orders
- betaflight X
 - DJI X
 - clockwise X
2019-02-06 11:17:35 +11:00
Andrew Tridgell 56683ba803 SITL: added SIM_BAUDRATE_EN parameter 2019-01-27 08:56:12 +11:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Peter Barker 834b45ce18 SITL: stop taking DataFlash pointer as argument 2019-01-18 11:16:54 +11:00
Peter Barker e3c719b27f SITL: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Andrew Tridgell 358c570d9d SITL: added simulated battery for quadplane
needed for motor interference for mag
2019-01-14 08:23:47 +11:00
Peter Barker d3b9ac5c8c SITL: add simulated parachute
Doesn't actually change aerodynamics at the moment
2019-01-09 13:16:03 +11:00
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
Andrew Tridgell d50dcb5ad2 SITL: added SIM_TEMP_BFACTOR
for barometer temperature error
2017-05-03 20:12:04 +10:00
Andrew Tridgell c1b6684b9f SITL: added temperature control parameters 2017-05-03 20:12:04 +10:00
Andrew Tridgell 67404e9660 SITL: added SIM_ODOM_ENABLE
for enabling visual odomotry simulated data
2017-05-01 15:06:46 +10:00
Pierre Kancir f8d6b5fc9c AP_HAL_SITL: Allow to use a second type of gps for all type 2017-04-26 18:34:56 +01:00
Andrew Tridgell 1e69508322 SITL: added a vectored tilt tricopter quadplane 2017-04-24 16:54:41 +10:00
Niels Joubert abd408bf40 SITL: Support both SBPv0 and SBPv2 2017-04-18 18:25:54 +01:00
Andrew Tridgell 92f060bdef SITL: improved single-motor tailsitter plane
give larger control surfaces and take account of thrust airflow over
control surfaces
2017-04-17 14:23:15 +10:00
Andrew Tridgell 4de0daa7a1 SITL: make quaternion state available outside SITL 2017-04-16 14:01:36 +10:00
Andrew Tridgell 68e0b5b7fa SITL: support XPlane-11
the packets are prefixed with DATA* instead of DATA@

This makes it work with both versions
2017-04-09 16:39:26 +10:00
Guilherme Sousa 204fcba8c1 SITL: Added SIM_ENGINE_FAIL to define failed motor 2017-03-29 22:39:51 +11:00
Pierre Kancir 1a374aa9f6 SIM_Gazebo: add a timeout to reset timestamp check 2017-03-18 19:58:11 +11:00
Pierre Kancir 29d35699f2 SITL: Gazebo, throw old paquet based on timestamp as we are using UDP
Add some comments
2017-03-18 19:58:11 +11:00