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