Commit Graph

757 Commits

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