Commit Graph

1017 Commits

Author SHA1 Message Date
bugobliterator e7533c006b SITL: add support for auxiliary IMUs 2023-03-21 10:04:16 +11:00
Andrew Tridgell d659642826 SITL: prevent a conflict with a _serialize() macro on cygwin
some cygwin versions define a macro _serialize with 1 argument
2023-03-15 19:32:22 +11:00
Pierre Kancir f0777b5cb0 SITL: constraint SITL rover to 360deg/s yaw rate on ackerman
This prevent the gsf to blow up due to the rover reaching 1042 deg/s yaw rate.
2023-03-15 19:31:26 +11:00
Peter Barker 1cdcc0b5f1 SITL: add documentation for SIM_OPOS* and SIM_FLOAT_EXCEPT 2023-03-14 10:44:28 +11:00
Peter Barker 06e20761de SITL: improve IE24 simulated tank pressure
this is simply the inverse of what the flight code does
2023-03-11 11:50:20 +11:00
Peter Barker 05c996bfcc SITL: correct use of uninitialised stack data in SIM_Gimbal 2023-03-06 14:18:59 +11:00
Peter Barker 8f7f0d5e72 SITL: add and use SIM_RGBLED 2023-02-28 10:24:43 +11:00
Peter Barker 4591895540 SITL: add gyro bias simulation 2023-02-24 09:21:42 +11:00
James O'Shannessy 010b4fc58c SITL: Remove support for reading gyro data from file for SIM on Hardware build 2023-02-21 16:48:43 +11:00
Andrew Tridgell 5a4fee6ac3 SITL: fixed orientation of XPlane11 gyro data 2023-02-20 06:59:13 +11:00
Andrew Tridgell ab723a6fd4 SITL: stop cygwin from trying to create FIFOs
some users find the error message annoying
2023-02-15 09:05:59 -08:00
Bill Geyer 978086490d SITL: improved dual heli model 2023-02-13 18:32:37 -05:00
Bill Geyer 062dade189 SITL: add tradheli support for autorotation simulation 2023-02-13 18:32:37 -05:00
Bill Geyer 8d1a362db7 SITL: fix heli RPM for heli SITL models 2023-02-07 11:05:29 +11:00
Andrew Tridgell 000c39ed27 SITL: fixed RealFlight RPM 2023-02-04 13:33:47 -05:00
Andrew Tridgell 7a4483b091 SITL: new XPlane backend
this makes use of DRefs to greatly improve XPlane support. It only
supports XPlane 11 and later

The key change is the use of a JSON file to map ArduPilot output
channels to DataRefs, and map raw joystick inputs to RC inputs

this gets rid of the awful throttle hack handling, and allows for
control of a much wider range of aircraft
2023-01-31 11:22:08 +11:00
Andrew Tridgell 0f35286041 SITL: fixed SIM lidar for FlightAxis 2023-01-24 16:09:23 +11:00
Ian d358ca1b32 SITL: Add Webots 2023a support and examples
The various C Webots controllers are replaced by a single Python controller
- More readable (in my opinion)
- Does not require compilation
- Easily modifiable to run user code
- Can be blackboxed and configured via arguments when designing a robot model
- Optionally provides the ability to stream camera images over TCP
- Generalizable to copters and rovers (and probably more)
- Supports multi-vehicle simulation (including of multiple types)
- Requires no non-standard libraries (neither does current)

Higher fidelity example worlds
- Iris quadcopter demo world similar to gazebo
- Crazyflie quadcopter demo world (crazyflie models baked into webots)
- Pioneer3at rover demo world (pioneer models baked into webots)
2023-01-22 18:19:38 +11:00
Peter Barker 591d587ed0 SITL: document SIM_ESC_TELEM
this is the perfect telemetry stream; we don't want to override other telemetry streams
2023-01-18 18:07:23 +11:00
Peter Barker 5078e6ea00 SITL: exclude SIM_SAIL_TYPE from non-Rover builds 2023-01-17 11:23:40 +11:00
Peter Barker 0c7ce291ec SITL: document the SIM_WOW_PIN parameter 2023-01-17 11:23:40 +11:00
Henry Wurzburg 509d4b7fbf SITL:make MAG1 param consistent names 2023-01-17 08:45:30 +11:00
Henry Wurzburg e96a55c1b6 SITL:add SIM param metadata 2023-01-15 21:58:12 +11:00
Andrew Tridgell d3ea7b0ca6 SITL: added SIM_UART_LOSS parameter 2023-01-15 21:57:15 +11:00
Henry Wurzburg c79672b96c SITL: add SITL param metadata and fix a few 2023-01-12 09:19:27 +11:00
Iampete1 621e01fbcc SITL: VectorNav: update simulated VN-300 for new packet type 2023-01-03 10:32:20 +11:00
Iampete1 baa642896e SITL: update for new airspeed tube order param name 2023-01-03 10:17:56 +11:00
Peter Barker e43b1dd2eb SITL: tidy simulated proximity sensor constructors 2022-12-28 21:52:27 +11:00
Andy Piper ec7be5c417 SITL: add parameters to control reading and writing IMU data to a file
add exit on stop to reading IMU data from a file
2022-12-28 18:14:56 +11:00
Andrew Tridgell 057190caa8 SITL: update SITL on hw docs 2022-12-24 07:27:04 +11:00
Andrew Tridgell 0da81f7269 SITL: remove old sitl-on-hw.sh 2022-12-24 07:27:04 +11:00
Andrew Tridgell 87a220991b SITL: new sitl-on-hw.py script
this makes it easier to build SITL on hardware for a wide range of
frames
2022-12-24 07:27:04 +11:00
Andrew Tridgell fdd0d0ae53 SITL: default SIM_RATE_HZ to 400 in SITL-on-hw 2022-12-24 07:27:04 +11:00
Andrew Tridgell 01cad1c4aa SITL: added SIM_GPS_LOG_NUM
for replaying GPS logs recorded with --enable-gps-logging
2022-12-20 10:23:58 +11:00
Andrew Tridgell 78dac16520 SITL: make serial buffer size configurable
we need a larger buffer size for NMEA GPS modules
2022-12-20 10:23:58 +11:00
Tatsuya Yamaguchi ccc5ba3cbd SITL: change HDOP from 2.0 to 1.2 2022-12-19 08:28:45 +09:00
Andy Piper 71a27027f1 SITL: add baro wind coefficients for Z-axis. 2022-12-14 19:19:58 +11:00
Peter Barker 1eb5911bf5 SITL: make and use AP_LANDINGGEAR_ENABLED 2022-12-14 18:30:23 +11:00
Andrew Tridgell eed6edc3b0 SITL: fixed sign of wind with AHRS_EKF_TYPE=10 and builtin models
an alternative to #21929 that doesn't break RealFlight

needs testing with sailboats
2022-12-11 09:42:07 +11:00
Andrew Tridgell 7039088c7b SITL: added SIM_TIME_JITTER parameter
for adding timing jitter in SITL
2022-12-06 11:03:50 +11:00
Randy Mackay 90498579f3 SITL: vicon odometry corrected 2022-11-28 17:21:23 +11:00
Henry Wurzburg cff3066591 SITL: add synthetic current sensor,fix SITL current 2022-11-24 06:53:35 +11:00
Andrew Tridgell 7942b58fba SITL: load plane-3d.parm when -f plane-3d is chosen
this gets the right parameters in MissionPlanner SITL
2022-11-10 10:30:53 +11:00
Andrew Tridgell 48415de472 SITL: cope better with timing glitches in RealFlight 2022-11-07 21:22:43 +11:00
Peter Barker f6d853d629 SITL: look for AP_GyroFFT rather than HAL-DSP support 2022-11-05 14:52:10 +11:00
Andrew Tridgell 256addc0f0 SITL: added plane-3d for aerobatic plane 2022-10-19 23:25:22 +11:00
Joshua Henderson 3fdf87a6c7 SITL: TSYS01 add sim temperature based on altitude 2022-10-18 10:05:31 +11:00
Andrew Tridgell 1138f9e624 SITL: allow for extra actuators to be marked as motors 2022-10-16 20:38:19 +11:00
Andrew Tridgell a0af08a3aa SITL switched to motor_mask for which actuators are motors
this allows for any output to be an ESC, which allows for proper
simulation of quadplanes with ESCs on outputs 5-8 or 9-12, for testing
notch filtering
2022-10-16 20:38:19 +11:00
Andrew Tridgell 4b8b2d8236 SITL: support playback of new GPS log format 2022-10-15 17:20:42 +11:00