Commit Graph

655 Commits

Author SHA1 Message Date
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