Peter Barker
1943938bc5
SITL: add simulated FETtec ESC
3 years ago
Andrew Tridgell
7ae696340a
SITL: prevent flip over of RF9 quadplanes on reboot
...
send a zero channel mask until we are initialised
3 years ago
Andrew Tridgell
1f5d16bff8
SITL: added SIM2 message
...
useful for EKF debugging
# Conflicts:
# libraries/SITL/SIM_Aircraft.cpp
4 years ago
Andrew Tridgell
34eb9f7328
SITL: separate origin and home in SITL
...
this allows for accurate sensor data when flying a very long distance
from the takeoff location
4 years ago
Andrew Tridgell
c1012d69ab
SITL: fixup offset calls
4 years ago
Andrew Tridgell
fb275c9874
SITL: convert to double precision for positions
4 years ago
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
4 years ago
Peter Barker
4909f6f0f1
SITL: increase servo_filter array size
...
used for plane-dspoiler frame
4 years ago
Peter Barker
09ba017b5b
SITL: panic if we attempt to filter out-of-range servo index
4 years ago
Peter Barker
3ea3566477
Tools: add follow-copter.sh for SITL
...
Another copy of this script - but this one doesn't need Morse or AirSim
4 years ago
Peter Barker
4a8f7d232a
SITL: add accessor for battery voltage
4 years ago
Peter Barker
cb8ff51b4d
SITL: add maxell to i2c bus and make it 14-cells
4 years ago
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
4 years ago
Siddharth Purohit
643fc77323
SITL: fix labs on unsigned value subtraction
4 years ago
Andrew Tridgell
bf1f27af32
SITL: added is_lock_step_scheduled() API
...
used to fix panic on bad timing
4 years ago
Andy Piper
15fe14289d
SITL: add SIM_ESC_TELEM
4 years ago
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==
4 years ago
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.
4 years ago
Iampete1
0c3aa72158
SITL: add direct actuated wing to sailboat sim
4 years ago
Pierre Kancir
9a6d4e3af1
SITL: check if we are over precland base
4 years ago
Pierre Kancir
cec82214d8
SITL: add local_ground_variable
4 years ago
Pierre Kancir
078a1a2b0c
SILT: limit update scope for precland
4 years ago
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
4 years ago
Andrew Tridgell
5818d6040c
SITL: convert param file for new plane PID system
4 years ago
Philippe Hamelin
187549b431
SITL: Add NMEA THS message.
4 years ago
Peter Barker
27c262b037
SITL: add documentation fo rsimulated barometers
4 years ago
Randy Mackay
30a08dda0a
SITL: add rover with vectored thrust support
4 years ago
Randy Mackay
381044c2d0
SITL: add comments to SIM_Rover members
4 years ago
Andrew Tridgell
7b9826cdce
SITL: change for AP::terrain as a pointer
4 years ago
Iampete1
79a6c5d2d5
SITL: Examples: JSON: MATLAB: add legacy Simulink files for 2018b
4 years ago
Samuel Tabor
a301808e7a
SITL: Add parsing of airspeed to SIM_JSON
4 years ago
Michelle Rossouw
7d42c3c834
SITL: Added simple blimp simulator
4 years ago
Josh Henderson
267d19b0de
SITL: SIM_Vicon fix observation interval limit
4 years ago
Josh Henderson
dceb76c9f1
SITL: SIM_VICON output MAVLink vision_position_delta
4 years ago
Peter Barker
03bb3237ef
SITL: set default RPM_TYPE to 10 for FlightAxis
4 years ago
Patrick José Pereira
300a14aaae
SITL: Simplify boolean expression
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
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.
4 years ago
Patrick José Pereira
ba293084e3
SITL: Remove pointer check before delete
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Patrick José Pereira
07c3435f9d
SITL: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Andrew Tridgell
7292b4f260
SITL: added SIM_ACC_TRIM_{X,Y,Z} for simulating IMU trim
...
this will enable an autotest for AHRS trim
4 years ago
Andrew Tridgell
9febcc0f98
SITL: added accel scaling parameters
4 years ago
Andrew Tridgell
b5089580a9
SITL: cleanup IMU parameters
...
allow for biases per IMU
4 years ago
Andrew Tridgell
c0ba7c29ca
SITL: use TCal class for temp adjustment in SITL
4 years ago
Siddharth Purohit
f53d80374b
SITL: fix build for macos systems
4 years ago
murata
fd91cb03b4
SITL: Change the Kelvin value to a defined name
4 years ago
Peter Barker
c0ea19e5c5
SITL: add test for maxbotixi2cxl
4 years ago
Pierre Kancir
c1f1208c89
SITL: add support for SIM_STATE msg
4 years ago
Andrew Tridgell
5def8a64ab
SITL: avoid negative current and voltage in flightaxis
...
RealFlight9 will sometimes give meaningless negative values
4 years ago
Peter Barker
b92b343d4e
SITL: add simulator for ICM40609
4 years ago
Peter Barker
81ab322daa
SITL: correct max_distance in simulated mavlink rangefinder
4 years ago