Peter Barker
db59117b83
SITL: add tests for ICE Planes
2022-07-01 19:33:51 +10:00
François Carouge
84b0f6478c
SITL/SIM_RF_MAVLink: fix incomplete initializer clauses
2022-07-01 18:24:43 +09:00
Shiv Tyagi
c339b1d374
SIM_Precland: add option to set orientation of precland device in sitl
2022-06-16 12:43:55 +10:00
Pierre Kancir
b43dd7ba27
SITL: fix python files exec permissions
2022-06-08 08:16:42 +09:00
Pierre Kancir
b835395cf9
SITL: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Peter Barker
c496985e37
SITL: SIM_RichenPower sets MaintenanceRequired error flag
...
Turns out the generator does set this flag when the generator reaches
its maintenance required state.
2022-05-25 18:17:05 +10:00
Ruffalo-sunghwan
dc07747199
SITL : correct comment spelling
2022-05-24 20:27:45 +09:00
Peter Barker
e6e45eda97
SITL: populate rangefinder ranges for inbuilt sims
...
These values are returned for the SITL rangefinder backend, type=100
2022-05-24 10:38:57 +10:00
Peter Barker
73190d075a
SITL: add support for SIM_OH_MASK (sim-on-hardware output enable mask
2022-05-24 10:35:32 +10:00
Peter Barker
488509353a
SITL: add support for Plane SITL-on-hw
2022-05-24 10:35:32 +10:00
Iampete1
32f8062b3e
SITL: move to 32 servo outs
2022-05-22 12:07:37 +10:00
Iampete1
a36848cba5
SITL: JSON Master: only copy the first 16 servos
2022-05-22 12:07:37 +10:00
Iampete1
572ebf29da
SITL: move to 32 servo outs
2022-05-22 12:07:37 +10:00
Andrew Tridgell
457568d3c5
SITL: removed SIM_WIND_DELAY
2022-05-17 19:34:32 +10:00
Andrew Tridgell
2dea725d80
SITL: fixed up airspeed parameters
...
use a separate airspeed structure and separate ratio per sensor
2022-05-17 19:34:32 +10:00
Peter Barker
dd4ec47aa2
SITL: SIM_MS5525: add simulated airspeed offset to raw pressure
2022-05-16 09:50:52 +10:00
Iampete1
f61d96dd5c
SITL: SIM_Frame: add number of motors to json spec
2022-05-03 10:03:07 +10:00
Iampete1
f864d93140
SITL: Frame and Motor changes to allow motor example
2022-05-03 10:03:07 +10:00
Iampete1
6a8fff67f7
SITL: SIM_Frame: remove motor evaluation debug code
2022-05-03 10:03:07 +10:00
Iampete1
a095415702
SITL: examples: evaluate battery: add readme
2022-05-03 10:03:07 +10:00
Iampete1
53f7ad24a8
SITL: add motor + prop evaluation model
2022-05-03 10:03:07 +10:00
Peter Barker
66a9677f79
SITL: tidy includes
2022-05-03 09:14:58 +10:00
Josh Henderson
51eb398277
SITL: SIM_BattMonitor_SMBus add registers to smartbatts
2022-05-02 10:56:39 +10:00
Iampete1
6eea4d12ee
SITL: apply momentum drag per-motor
2022-05-01 09:17:23 +10:00
Iampete1
f9050c3040
SITL: Frame: take drag from thrust not accel
2022-05-01 09:17:23 +10:00
Iampete1
92135400f8
SITL: Frame: stop adding random physics noise
2022-05-01 09:17:23 +10:00
Iampete1
f869506b0a
SITL: Motor: acount for airflow due to vehicle rotation
2022-05-01 09:17:23 +10:00
Iampete1
bead0ac0f8
SITL: JSON allow to set motor rotation direciton
2022-05-01 09:17:23 +10:00
Iampete1
4fe335c2d0
SITL: tests: only build on sitl
2022-04-26 10:26:29 +10:00
Iampete1
d1aa7aa062
SITL: add battery model evaluation example
2022-04-26 10:26:29 +10:00
Iampete1
1111ca4867
SITL: SIM_Frame: load_frame_params and model to protected, allow USE_PICOJSON override
2022-04-26 10:26:29 +10:00
Iampete1
f0c17f0e49
SITL: use AP_SIM_ENABLED define more
2022-04-26 10:26:29 +10:00
Peter Barker
7d10192550
SITL: do not write post locations files unless on HAL_BOARD_SITL
...
Nobody's going to be retrieving these from SD card so they can visualise
things...
2022-04-25 11:20:26 +10:00
Peter Barker
1d96dfe7c1
SITL: exclude method declarations based on USE_PICOJSON
...
Fixes SimOnHardware build
2022-04-25 11:20:26 +10:00
Peter Barker
348f0ad590
SITL: add SIM_SONAR_ROT, use it for measuring horizontal distances
2022-04-19 10:26:10 +10:00
Iampete1
a7abfeeb4a
SITL: allow cutom motor postions and thrust vectors to be specified
2022-04-19 09:43:51 +10:00
Iampete1
c4518e5cb7
SITL: motor: use postion and thrust vector
2022-04-19 09:43:51 +10:00
Iampete1
47f327b500
SITL: allow Vector3f inertia to be set via JSON
2022-04-19 09:43:51 +10:00
Iampete1
6272dc33dd
SITL: move moments inertia to frame property
2022-04-19 09:43:51 +10:00
Iampete1
7936f3bb0a
SITL: move motor related constants to motor object
2022-04-19 09:43:51 +10:00
Andrew Tridgell
4c9a851fc6
SITL: update for changed INS_NOTCH parameter name
2022-04-16 08:14:06 +10:00
Randy Mackay
375ab84e56
SITL: correct suggestion to user re wind estimatation param value
...
EK3_MCOEF becomes EK3_DRAG_MCOEF
EK3_BCOEF_ becomes EK3_DRAG_BCOEF_
2022-04-13 07:57:35 +09:00
Andrew Tridgell
536b59ed42
SITL: don't use adjusted terrain in SITL
2022-03-28 16:01:21 +11:00
Peter Barker
ebe2205ba7
SITL: add on-hardware example files
2022-03-17 14:39:55 +11:00
Peter Barker
edef2ceb56
SITL: usleep only on AP_HAL_SITL
2022-03-17 14:39:55 +11:00
Peter Barker
b360521d0b
SITL: permit double-precision maths in SITL even on embedded hardware
2022-03-17 14:39:55 +11:00
Peter Barker
2e809282e7
SITL: split AP_HAL_SITL and AP_SIM_ENABLED
2022-03-17 14:39:55 +11:00
Peter Barker
0957131543
SITL: use AP_HAL::micros() for get_wall_time_us
2022-03-17 14:39:55 +11:00
Peter Barker
3cf7091525
SITL: make parsing of json files dependent on PICOJSON
...
picojson uses the standard library; this will be a problem on embedded
platforms
2022-03-17 14:39:55 +11:00
Andrew Tridgell
c658f170cb
SITL: fixed ship offset velocity correction
2022-03-10 07:34:20 +11:00
Andrew Tridgell
18782c4990
SITL: added ship offset and ATTITUDE
2022-03-10 07:34:20 +11:00
Andrew Tridgell
07b78ab9a6
SITL: removed terrain home correction
2022-03-10 07:34:20 +11:00
murata
d3b7bbf994
SITL: Change build errors
2022-03-08 14:37:21 -08:00
Andy Piper
72d01aa8da
SITL: nuke clang warnings
2022-03-03 16:34:14 +11:00
Iampete1
b188d8fc5e
SITL: remove custom rotations
2022-03-02 18:16:42 +11:00
Peter Barker
4afc14007b
SITL: correct PS_LightWare_SF45B simulator
2022-02-17 09:23:29 +11:00
Peter Barker
6521bc31c7
SITL: correct altitude of suggested test location
2022-02-17 09:23:29 +11:00
Peter Barker
574f041224
SITL: do not abort if we fail to send a message to the autopilot
...
This is happening at boot - the simulated sensor is sending data too
quickly too soon to the autopilot, which hasn't detected the instance at
the time we abort.
2022-02-17 09:23:29 +11:00
Peter Barker
4dfc9494ef
SITL: correct compilation if INS_TEMPERATURE_CAL_ENABLE is off
2022-02-08 10:44:01 +11:00
Andrew Tridgell
7643c5d3f3
SITL: log airspeed in SIM2
2022-02-07 14:13:49 +11:00
Peter Barker
af1a454820
SITL: fix may-be-used-uninitialised error in thermalling code
2022-02-02 18:59:23 +11:00
Peter Barker
8782e21443
SITL: do not compile SIM_GPS parameters in if SIM_GPS not enabled
2022-01-25 19:28:06 +11:00
Josh Henderson
442cff4c60
SITL: helicopter add update_external_payload() for sensors
2022-01-19 18:21:32 +11:00
VMsunghwan
3febd78943
SITL : Update Telemetry
...
telemetery -> telemetry
2022-01-17 11:26:34 +09:00
Peter Barker
ee341bc4eb
SITL: add compilation option AP_SIM_CRSF_ENABLED
2022-01-15 21:56:33 +11:00
Peter Barker
bff0b6f970
SITL: add and use AP_SIM_GPS_FILE_ENABLED
2022-01-15 17:36:22 +11:00
Peter Barker
e6779e91e6
SITL: allow JEDEC/RAMTRON to be compiled out
...
SITL: add and use AP_SIM_RAMTRON_ENABLED
SITL: add an use AP_SIM_JEDEC_ENABLED
2022-01-15 13:50:21 +11:00
Jaaaky
22e1ea559c
SITL: Fix typo (NFC)
2022-01-13 14:01:21 -08:00
Peter Barker
9ef959b93b
SITL: make C_TO_KELVIN a function macro; create KELVIN_TO_C
...
These are in celsius
2022-01-13 18:31:46 +11:00
VMsunghwan
224cea979e
SITL : fixed typo
...
line 1119 in pnet.c : to to -> to
line 198 in SIM_Plane.cpp : to to -> to
2022-01-13 09:45:39 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
87b0db7990
SITL: correct typos in comments
2022-01-12 16:47:42 +09:00
Joshua Henderson
d77105b3b1
SITL: Gimbal make some printfs #if GIMBAL_DEBUG
2022-01-12 18:03:27 +11:00
Andrew Tridgell
19d2dcb413
SITL: removed unnecessary SIM_GPS_DELAY parameters
2022-01-12 07:54:46 +11:00
Andrew Tridgell
df30d4e723
SITL: support interpolated GPS lag
...
use SIM_GPS_LAG_MS and SIM_GPS2_LAG_MS for the lag in milliseconds
2022-01-12 07:54:46 +11:00
Andrew Tridgell
c565b8a84e
SITL: support KSXT message for Unicore NMEA
2022-01-11 10:34:11 +11:00
Peter Barker
268032e640
SITL: add missing include file for terrain
2021-12-29 16:10:17 +11:00
Andrew Tridgell
05f112ea17
SITL: support simulation of ODOMETRY message
2021-12-27 12:32:41 +11:00
Shiv Tyagi
fa6adc0beb
SITL: add JEDEC dataflash simulator
...
We currently use AP_Logger_SITL for this purpose but we can instead add a dataflash simulator which can work with existing AP_Logger_Dataflash backend instead of using AP_Logger_SITL.
Co-Authored-By: Divyateja Pasupuleti <divyateja2004@gmail.com>
2021-12-25 09:14:31 +11:00
Andrew Tridgell
ba58558bd1
SITL: fixed default BATT_CAPACITY for SITL
...
don't override from JSON model unless we have a value
2021-12-21 19:53:43 +11:00
Jaaaky
71154105e4
SITL: Fix multi #include's
2021-12-21 10:38:46 +11:00
Peter Barker
497e6df326
SITL: correct submarine rangefinding
2021-12-11 20:10:10 +11:00
Peter Barker
6fcf724b67
SITL: tidy range calculations
...
Also return INFINITY if the rangefinder can't see the ground
2021-12-11 20:10:10 +11:00
Andrew Tridgell
0944c24978
SITL: revert compass parameter changes
2021-12-04 16:51:53 +11:00
Iampete1
95713959ec
SITL: exmaples: use new compass params
2021-11-30 08:14:43 +09:00
Charlie-Burge
a9c4895514
SITL: reduce SLV2 logger message size
2021-11-26 12:24:46 +11:00
Josh Henderson
c7a4ae9cce
SITL: comment for sim_i2c parameters
2021-11-24 13:54:49 +11:00
Peter Barker
8843c17f9d
SITL: LightwareSerial: return 130m when out-of-range-high
2021-11-23 18:20:58 +11:00
Peter Barker
2dd3263650
SITL: cap digits in LightWareSerial measurements
...
this was hitting the buffer-length limit in the ArduPilot rangefinder
driver as soon as we hit the 100m mark
2021-11-23 18:20:58 +11:00
Peter Barker
494dcc6ba3
SITL: make SITL::ADSB a SITL::SerialDevice
2021-11-23 11:09:29 +11:00
Tom Pittenger
659c35d1a9
SITL: expire stationary sim_adsb targets after an hour
2021-11-23 09:16:04 +11:00
HefnySco
5aa3714e71
WEBOTS_SITL: adjust_params model
2021-11-16 13:30:12 +11:00
Peter Barker
60453b2250
SITL: quieten MKFIFO warning in case of EEXIST
2021-11-12 09:56:28 +11:00
Peter Barker
306bd0a4ab
SIM_GPS: make writing of data w/out byteloss more efficient
2021-11-06 16:56:14 +11:00
Peter Barker
13bd2379cf
SITL: use SITL::SerialDevice in place of pipe for communication
2021-11-06 16:54:07 +11:00
Peter Barker
a88464c928
SITL: send sv_info from both GPS instances
...
Without sv_info we don't get the correct ublox type, meaning we get the wrong lag time, meaning EKF2 gets rather more annoyed than it should when we do loops in SITL.
2021-11-05 23:18:11 +11:00
Peter Barker
1abef3275e
SITL: make ToshibaLED simulator optional
2021-11-02 09:40:09 +11:00
Peter Barker
59bda177ff
SITL: cope with fewer than three INS_MAX_INSTANCEs
2021-11-02 09:38:59 +11:00
Peter Barker
581629b332
SITL: make Ship simulator optional
2021-11-01 21:34:04 +11:00
Andrew Tridgell
7056a09ef4
SITL: rename uLanding files to USD1
2021-10-26 15:31:12 +11:00
Andrew Tridgell
55e8725231
SITL: rename uLanding simulation to USD1
2021-10-26 15:31:12 +11:00
Iampete1
ef9580fcf2
SITL: update tailsitter ground behavoir
2021-10-26 10:03:00 +11:00
IamPete1
950391df12
SITL: add copter tailsitter
2021-10-26 10:03:00 +11:00
Peter Barker
7da5d9861a
SITL: remove use of fprintf in SIM_SPI
2021-10-21 13:04:33 +11:00
Peter Barker
8c60bfc1c3
SITL: correct format string in SIM_IntelligentEnergy24
2021-10-21 13:01:49 +11:00
Peter Barker
06c3290e15
SITL: correct buffer over-read in GPS lag simulation
2021-10-21 12:09:21 +11:00
Peter Barker
6c16da21c5
SITL: make simulated GPS work as a SerialDevice
2021-10-21 12:09:21 +11:00
Peter Barker
99e80549b1
SITL: move sitl_gps.cpp to SIM_GPS.cpp
2021-10-21 12:09:21 +11:00
Stephen Dade
016edd28fc
SITL: Add instance to ADSB simulation
2021-10-20 20:21:33 +11:00
Peter Barker
8ffbddd6ec
SITL: correct compilation when MAX_CONNECTED_MAGS is reduced
...
For example, when building AP_Periph with reduced mag count
2021-10-20 19:43:47 +11:00
Peter Barker
2d192e1fd3
SITL: remove written-only AP::sitl().update_rate_hz
2021-10-20 19:07:17 +11:00
Peter Barker
a39fe77681
SITL: add simulated MCP9600
2021-10-19 08:15:00 +11:00
Peter Barker
05c6a25e52
SITL: move simulated megasquirt to SerialDevice framework
2021-10-17 10:00:08 +11:00
Davis Schenkenberger
3e748d77c9
Tools: autotest: add test for LORD EAHRS
2021-10-17 08:55:03 +11:00
Asa Davis
85fbbe0704
SITL: add simulator for LORD Microstrain serial EAHRS
2021-10-17 08:55:03 +11:00
Josh Henderson
2b5e2a00e1
SITL: NMEA Depthfinder add temperature simulation
2021-10-15 13:08:17 +11:00
Peter Barker
e9165fdeab
SITL: add simulated RAMTRON device
2021-10-12 20:01:49 +11:00
Peter Barker
437e0e6459
SITL: add simulated SPI devices
2021-10-12 20:01:49 +11:00
Peter Barker
5b8a3c3ff9
SITL: use enumeration in place of O_RDWR for I2C register defs
2021-10-12 14:44:31 +11:00
Peter Barker
90f8cbde13
SITL: provide HAL_x_ENABLED for many SITL features
...
This allows for the feature to be compiled out
2021-10-12 09:04:55 +11:00
Peter Barker
aa4f375015
SITL: SIM_RichenPower: remove reference to stderr
2021-10-12 09:00:45 +11:00
Peter Barker
c9df857f16
SITL: avoid use of stderr/::fprintf
2021-10-12 09:00:17 +11:00
Peter Barker
94ad32b91c
SITL: remove HIL_MODE vestiges
2021-10-12 08:57:05 +11:00
Stephen Dade
e85f803e27
SITL: Expand multi-drone example
2021-10-08 17:29:10 +11:00
Peter Barker
d7ff072d26
SITL: remove mtk GPSs
2021-09-29 17:28:59 +10:00
Tatsuya Yamaguchi
f3173174f3
SITL: cope with BARO_MAX_INSTANCES < 3
2021-09-29 10:51:14 +10:00
Josh Henderson
4d7dddf337
SITL: sim_MS5611 fix simulated driver for 32bit usage
2021-09-28 09:15:11 +10:00
Josh Henderson
1019628ae4
SITL: test_ms5611 fix <-15C test case
2021-09-28 09:11:48 +10:00
Peter Barker
4b5525f53e
SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
Josh Henderson
96cabfc423
SITL: add unit tests for SIM_MS5525
2021-09-21 09:30:58 +10:00
Josh Henderson
18a0632276
SITL: MS5XXX drivers use check_conversion_accuracy
2021-09-21 09:30:58 +10:00
Josh Henderson
2a2399c8f1
SITL: airspeed DLVR add atmosphere temperature model
2021-09-21 09:30:58 +10:00
Josh Henderson
5e90649a6e
SITL: fix MS5525 for temp <20C and negative pressures
2021-09-21 09:30:58 +10:00
Michelle Rossouw
c9a3b16aa7
SITL: Blimp SITL add initial dynamics
2021-09-18 08:26:23 +10:00
Andrew Tridgell
119df09c44
SITL: cope with a socket error in FlightAxis
...
this fixes an issue that has arisen with the new threading approach
where RF would occasionally freeze
2021-09-16 14:31:10 +10:00
Rhys Mainwaring
6cb4e6b31d
SITL: update simpleRover C++ JSON interface example
...
- Provide a cmake file for cross platform builds
- Modify the example to respond to throttle commands on RC channel 3 (default for Rover)
- Add more detail to readme
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2021-09-14 09:54:39 +10:00
Iampete1
8c37d08379
SITL: Examples: SilentWings: remove AUTO_FBW_STEER
2021-09-12 22:12:32 -05:00
Andrew Tridgell
d62346f8d0
SITL: use a thread to create sockets for RealFlight
...
this reduces the cost of the socket creation on each frame, resulting
in higher frame rates. Typical improvement is around 30%
2021-09-13 10:38:48 +10:00
Iampete1
999c26926a
SITL: examples: SilentWings: remove ALT_CTRL_ALG
2021-09-09 11:07:07 +01:00
Peter Barker
abe78e168d
SITL: make heli-blade simulation work
2021-09-08 14:33:19 +10:00
Bill Geyer
9a917abf76
SITL: update conventional heli dynamics and add blade 360 heli dynamics
2021-09-08 14:33:19 +10:00
TunaLobster
c20914c0c6
SITL: Add C++ library for JSON interface
...
Includes examples for a 1-D rover, minimum, and a copy of Socket as SocketExample.
2021-08-31 14:28:03 +10:00
Iampete1
7d536666b4
SITL: SIM_Sailboat: remove use of AHRS
2021-08-30 13:40:37 +10:00
Iampete1
6628fd2837
SITL: swap rotation direciton of motor 2 for lower yaw offset
2021-08-28 10:32:59 +09:00
Josh Henderson
b94fb40a33
SITL: add unit tests for SIM_MS5611
2021-08-25 12:37:43 +10:00
Gone4Dirt
b402a50bb2
SITL: Remove RPM params from examples that are set to defaults
2021-08-25 09:36:58 +10:00
Gone4Dirt
7be9773f95
SITL: Update RPM param in FlightAxis defaults
2021-08-25 09:36:58 +10:00
Josh Henderson
e8dcdd60c5
SITL: param use baro temp_board_offset instead of temp_flight
2021-08-24 09:55:01 +10:00
Mohammad Hefny
2a14181e69
update to new files names
2021-08-24 07:45:41 +10:00
Mohammad Hefny
ac30fbd7b0
SITL: Webots2021b Compatible
2021-08-24 07:45:41 +10:00
Peter Barker
44803b92c7
SITL: correct SIM_FETtecOneWire consume function
...
when this was factored out the parameter wasn't taken into account.
2021-08-23 13:47:35 +10:00
Andrew Tridgell
46287dcb00
SITL: fixed plane-tailsitter model
...
it doesn't play well with smoothing
2021-08-19 12:08:54 +10:00
Andrew Tridgell
477f936560
SITL: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Josh Henderson
aaa8600d7b
SITL: SIM_MS5611 fix D1&D2 when temperature compensated & forward_conversion check
2021-08-17 19:08:23 +10:00
Andrew Tridgell
9507f7883f
SITL: prevent flip over of RF9 quadplanes on reboot
...
send a zero channel mask until we are initialised
2021-08-16 08:33:34 +10:00
Peter Barker
97057a1350
SITL: add simulated FETtec ESC
2021-08-13 16:22:37 +10:00
Iampete1
ce7a93ab6c
SITL: add SIM_AIS
2021-08-10 08:11:18 +09:00
Rishabh
8aa5be2a08
SITL: Change Morse Ackermann model param
2021-08-09 14:54:11 +09:00
bugobliterator
3033589fca
SITL: change class name from SITL::SITL to SITL::SIM
2021-08-05 07:25:31 +10:00
Andrew Tridgell
8196f422cb
SITL: mark SIM2 as a streaming message
2021-08-03 10:23:36 +10:00
Iampete1
612ea70e5b
SITL: add JSON Master
2021-08-03 09:22:19 +10:00
Iampete1
41c167ba89
SITL: add SIM_JSON_MASTER param
2021-08-03 09:22:19 +10:00
Iampete1
4505dce64d
SITL: SIM_JSON: add no time sync to JSON format
2021-08-03 09:22:19 +10:00
Andrew Tridgell
0048167f16
SITL: added SIM2 message
...
useful for EKF debugging
2021-07-22 10:19:02 +10:00
Peter Barker
78e0e52542
SITL: add simulated ms5611 baro
2021-07-14 17:46:15 +10:00
Peter Barker
b184341424
SITL: add subclass for MS5525
2021-07-14 17:46:15 +10:00
Peter Barker
aa97c5b714
SITL: adjust MS5XXX to be new base class
2021-07-14 17:46:15 +10:00
Peter Barker
50d7fc353f
SITL: rename SIM_MS5525 to SIM_MS5XXX
2021-07-14 17:46:15 +10:00
Andrew Tridgell
5eaf76cdc8
SITL: separate origin and home in SITL
...
this allows for accurate sensor data when flying a very long distance
from the takeoff location
2021-07-14 17:34:40 +10:00
Peter Barker
7375d1949c
SITL: add support for ms5525 i2c sensor
2021-07-13 12:00:37 +10:00
Peter Barker
f75e258606
SITL: SIM_Ship: correct GLOBAL_POSITION_INT message altitude
2021-07-12 17:34:44 +10:00
Peter Barker
05a0205c21
SITL: change to use terrain singleton
2021-07-12 17:34:44 +10:00
Andrew Tridgell
01062cccd7
SITL: fixup offset calls
2021-07-10 07:20:41 +10:00
Andrew Tridgell
fb275c9874
SITL: convert to double precision for positions
2021-06-24 21:34:30 +10:00
Andrew Tridgell
cf149a9d18
SITL: added SIM_INIT_LAT_OFS and SIM_INIT_LON_OFS
...
these give an initial lat/lon offset to the GPS in SITL so we can end
up with an origin a long way from the final position
2021-06-24 21:34:30 +10:00
Peter Barker
4909f6f0f1
SITL: increase servo_filter array size
...
used for plane-dspoiler frame
2021-06-21 14:13:18 +10:00
Peter Barker
09ba017b5b
SITL: panic if we attempt to filter out-of-range servo index
2021-06-21 14:13:18 +10:00
Peter Barker
3ea3566477
Tools: add follow-copter.sh for SITL
...
Another copy of this script - but this one doesn't need Morse or AirSim
2021-06-17 16:23:08 +10:00
Peter Barker
4a8f7d232a
SITL: add accessor for battery voltage
2021-06-15 09:46:26 +10:00
Peter Barker
cb8ff51b4d
SITL: add maxell to i2c bus and make it 14-cells
2021-06-15 09:46:26 +10:00
Andrew Tridgell
3a6bafc6a6
SITL: fixed order of rotations in tilt vehicles
...
tilt is in body frame, not rotated arm frame, so needs to be applied
2nd
2021-06-08 19:11:32 +10:00
Siddharth Purohit
643fc77323
SITL: fix labs on unsigned value subtraction
2021-05-26 17:40:19 +10:00
Andrew Tridgell
bf1f27af32
SITL: added is_lock_step_scheduled() API
...
used to fix panic on bad timing
2021-05-24 20:13:37 +10:00
Andy Piper
15fe14289d
SITL: add SIM_ESC_TELEM
2021-05-12 17:01:11 +10:00
Peter Barker
d38e704115
SITL: fix memory over-read detected by Valgrind
...
==15803== Conditional jump or move depends on uninitialised value(s)
==15803== at 0x4C34975: index (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15803== by 0x444D8D: SITL::Frame::load_frame_params(char const*) (SIM_Frame.cpp:363)
==15803== by 0x445415: SITL::Frame::init(char const*, SITL::Battery*) (SIM_Frame.cpp:432)
==15803== by 0x3696ED: SITL::MultiCopter::MultiCopter(char const*) (SIM_Multicopter.cpp:35)
==15803== by 0x34B49C: SITL::MultiCopter::create(char const*) (SIM_Multicopter.h:44)
==15803== by 0x34C58E: HALSITL::SITL_State::_parse_command_line(int, char* const*) (SITL_cmdline.cpp:480)
==15803== by 0x344005: HALSITL::SITL_State::init(int, char* const*) (SITL_State.cpp:923)
==15803== by 0x33D854: HAL_SITL::run(int, char* const*, AP_HAL::HAL::Callbacks*) const (HAL_SITL_Class.cpp:182)
==15803== by 0x15ACDD: main (Copter.cpp:678)
==15803==
2021-05-05 21:21:56 +10:00
Peter Barker
0661a27400
SITL: ensure st.size is valid when loading model json
...
Before this patch st.size is undefined when we use it to create a buffer
on the stack - probably not a good thing.
2021-05-05 21:21:56 +10:00
Iampete1
0c3aa72158
SITL: add direct actuated wing to sailboat sim
2021-04-28 08:22:47 +01:00
Pierre Kancir
9a6d4e3af1
SITL: check if we are over precland base
2021-04-21 17:26:07 +10:00
Pierre Kancir
cec82214d8
SITL: add local_ground_variable
2021-04-21 17:26:07 +10:00
Pierre Kancir
078a1a2b0c
SILT: limit update scope for precland
2021-04-21 17:26:07 +10:00
Michael Oborne
323cbe47d2
SITL: fixup SIM_BAR parameter descriptions
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
this fixs a issue with MP param doc parser caused by a syntax change
2021-04-16 09:21:44 +09:00
Andrew Tridgell
5818d6040c
SITL: convert param file for new plane PID system
2021-04-15 06:57:16 +10:00
Philippe Hamelin
187549b431
SITL: Add NMEA THS message.
2021-04-14 17:20:28 +10:00
Peter Barker
27c262b037
SITL: add documentation fo rsimulated barometers
2021-04-10 11:28:22 +10:00
Randy Mackay
30a08dda0a
SITL: add rover with vectored thrust support
2021-04-08 08:47:07 +09:00
Randy Mackay
381044c2d0
SITL: add comments to SIM_Rover members
2021-04-08 08:47:07 +09:00
Andrew Tridgell
7b9826cdce
SITL: change for AP::terrain as a pointer
2021-04-07 20:56:01 +10:00
Iampete1
79a6c5d2d5
SITL: Examples: JSON: MATLAB: add legacy Simulink files for 2018b
2021-04-06 10:45:37 +10:00
Samuel Tabor
a301808e7a
SITL: Add parsing of airspeed to SIM_JSON
2021-03-31 19:26:02 +11:00
Michelle Rossouw
7d42c3c834
SITL: Added simple blimp simulator
2021-03-31 12:27:07 +11:00
Josh Henderson
267d19b0de
SITL: SIM_Vicon fix observation interval limit
2021-03-04 16:12:54 +09:00
Josh Henderson
dceb76c9f1
SITL: SIM_VICON output MAVLink vision_position_delta
2021-03-04 16:12:54 +09:00
Peter Barker
03bb3237ef
SITL: set default RPM_TYPE to 10 for FlightAxis
2021-03-02 15:41:44 +11:00
Patrick José Pereira
300a14aaae
SITL: Simplify boolean expression
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-23 10:30:05 +11:00
Peter Barker
514dfa4b71
SITL: SF45B: increase resolution to 1 degree
...
The mode filter tends to squish a lot of data if we don't get this
correct.
2021-02-04 20:50:21 +11:00
Patrick José Pereira
ba293084e3
SITL: Remove pointer check before delete
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
07c3435f9d
SITL: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Andrew Tridgell
7292b4f260
SITL: added SIM_ACC_TRIM_{X,Y,Z} for simulating IMU trim
...
this will enable an autotest for AHRS trim
2021-01-25 16:24:50 +11:00
Andrew Tridgell
9febcc0f98
SITL: added accel scaling parameters
2021-01-21 13:09:21 +11:00
Andrew Tridgell
b5089580a9
SITL: cleanup IMU parameters
...
allow for biases per IMU
2021-01-21 13:09:21 +11:00
Andrew Tridgell
c0ba7c29ca
SITL: use TCal class for temp adjustment in SITL
2021-01-21 13:09:21 +11:00
Siddharth Purohit
f53d80374b
SITL: fix build for macos systems
2021-01-21 13:09:21 +11:00
murata
fd91cb03b4
SITL: Change the Kelvin value to a defined name
2021-01-20 20:27:19 +11:00
Peter Barker
c0ea19e5c5
SITL: add test for maxbotixi2cxl
2021-01-19 11:20:47 +11:00
Pierre Kancir
c1f1208c89
SITL: add support for SIM_STATE msg
2021-01-19 10:40:43 +11:00
Andrew Tridgell
5def8a64ab
SITL: avoid negative current and voltage in flightaxis
...
RealFlight9 will sometimes give meaningless negative values
2021-01-19 10:21:35 +11:00
Peter Barker
b92b343d4e
SITL: add simulator for ICM40609
2021-01-12 17:43:36 +11:00
Peter Barker
81ab322daa
SITL: correct max_distance in simulated mavlink rangefinder
2021-01-06 15:33:41 +11:00
Andrew Tridgell
f57971eafe
SITL: added VectorNav simulator
2021-01-05 21:13:12 +11:00
Peter Barker
b6833eee9b
SITL: correct SMBus block reads
2021-01-05 14:45:20 +11:00
Peter Barker
8be50910e4
SITL: add support for simulated TSYS01 temperature sensor
2021-01-05 12:01:51 +11:00
Josh Henderson
ceb2c87970
SITL: align default i2c device bus for BattMonitor
2021-01-04 18:30:09 +11:00
Peter Barker
8977f3a859
SITL: correct I2C message handling
2021-01-04 12:49:20 +11:00
Peter Barker
23d393e108
SITL: add I2C 8Bit-register methods
2021-01-04 12:49:20 +11:00
Peter Barker
8e34388a20
SITL: move simulated maxsonari2c to bus 0
...
.... where the driver expects it by default
2021-01-03 20:36:54 +11:00
Peter Barker
e5fd661caf
SITL: correct I2C multi-bus support
2021-01-03 20:36:54 +11:00
Peter Barker
21ffa4d259
SITL: add sanity check for duplicate bus/addr I2C devices
2021-01-03 20:36:54 +11:00
Peter Barker
995f5d1dad
SITL: increase quad scanner range to 18m
...
Matches the value we send for Rover, which is useful until we can
reflect on the simulation to discover its maximum range
2021-01-03 18:54:54 +11:00
Rishabh
2f5f55f680
SITL: Added quadcopter morse example with laser scanner
2021-01-03 18:54:54 +11:00
Peter Barker
b1239dcd06
SITL: correct OBSTACLE_DISTANCE message output from SIM_Morse
2021-01-03 17:49:44 +11:00
oneWayOut
654aea1cd1
SITL: delete unused parameter 'Vector3f &body_accel' in Plane::calculate_forces()
2020-12-30 18:59:12 +11:00
Peter Barker
69c97c1565
SITL: add support for multiple i2c buses
2020-12-24 16:05:49 +11:00
Peter Barker
b5316c3b52
SITL: stash pressure in sitl_fdm structure
...
It's not a great way of getting the data where needed - but it is
something.
2020-12-22 23:07:24 +11:00
Peter Barker
0bb6f8897e
SITL: add simulated DLVR airspeed sensor
2020-12-22 23:07:24 +11:00
Andrew Tridgell
a31ea88ff5
SITL: use async SOAP requests for flightaxis
...
this greatly improves performance for cygwin
2020-12-17 16:13:55 +11:00
Andrew Tridgell
8d6d5c6b49
SITL: removed flightaxis threading
2020-12-17 16:13:55 +11:00
Paul Riseborough
b258cb0539
SITL: Add momentum drag to Z axis to work around thrust model deficiencies
2020-12-11 15:21:41 +11:00
Paul Riseborough
a907c10733
SITL: Add momentum drag to multicopter model
2020-12-11 15:21:41 +11:00
Andrew Tridgell
b7f68e87b4
SITL: added barometer wind coefficients
2020-12-11 15:21:41 +11:00
Andrew Tridgell
3456bdb4eb
SITL: added a separate param class for SITL baro params
...
makes it easier to add more
2020-12-11 15:21:41 +11:00
Peter Barker
449b0fb145
SITL: add simulated SF45B
2020-12-09 21:32:36 +11:00
Andrew Tridgell
445759295d
SITL: fixed use of GND prefix
2020-12-08 13:22:17 +11:00
murata
13c7980f0b
SITL: Support for decacopters
2020-12-08 11:59:10 +11:00
Peter Barker
e5423a3cf6
SITL: add terarangertower simulator
2020-12-08 09:21:06 +11:00
Peter Barker
bd5c34f626
SITL: improve instructions for using simulated RPLidarA2 sensor
2020-12-08 09:21:06 +11:00
Peter Barker
7d232b24d6
SITL: improve simulated serial proximity sensor
...
SITL: rename measure_distance_at_angle to include '_bf'
2020-12-08 09:21:06 +11:00
Peter Barker
6bc8ff2ee8
SITL: factor out an I2C command/response class from simulated MaxSonar sensor
2020-12-05 09:35:53 +11:00
Tom Pittenger
20d21fe175
SITL/examples: remove ADSB param that is already default
2020-11-30 16:05:17 +11:00
Peter Barker
f7b2856af0
SITL: add simulator for IntelligentEnergy 2.4kWh
...
SITL: Added setup note to comment
SITL: IE24: Add Error param and cycle battery pwr
2020-11-24 12:54:52 +11:00
Andrew Tridgell
bce4fd43a3
SITL: fixed GPS POS parameters
...
SIM_GPS2_POS1_* makes no sense
2020-11-24 12:01:04 +11:00
Michael du Breuil
892fb74c96
SITL: Add parameters for SFML_Joystick
2020-11-13 15:38:22 +11:00