Andrew Tridgell
4d01cb1716
HAL_SITL: fixed SITL engine mul error
...
expression without get() was treated as int
9 years ago
Andrew Tridgell
5c92adddf9
HAL_SITL: allow examples to run under SITL
9 years ago
Will Sackfield
0a60d713af
AP HAL SITL: Use fully qualified SITL namespace
...
* using namespace SITL caused ambiguities due to
both SITL and HAL SITL using the same namespace
9 years ago
Tom Pittenger
f695f37ca3
AP_HAL_SITL: handle negative throttle
...
- negative throttle was causing negative voltage offsets
9 years ago
Lucas De Marchi
0e09975fa6
AP_HAL_SITL: fix typo
9 years ago
Andrew Tridgell
655f57ad01
HAL_SITL: cleanup class names
...
remove SITL prefix
9 years ago
Andrew Tridgell
2dd8a0af74
HAL_SITL: allow visualisation of quad motor speeds in flightgear
9 years ago
Andrew Tridgell
1450f33b51
HAL_SITL: support 16 RC input channels in SITL
9 years ago
Andrew Tridgell
83c8505b3c
HAL_SITL: send state to flightgear viewer
9 years ago
Andrew Tridgell
d0896a1fb2
HAL_SITL: fixed init of channel 8 out in plane and rover
...
should be low
9 years ago
Tom Pittenger
48ae0d645d
AP_HAL_SITL: compiler warning: float to double promotion
...
- replace atof() with strtof() for the correct return time
9 years ago
Tom Pittenger
bb4f0783ad
AP_HAL_SITL: created ADS-B simulator to generate additional ghost aircraft within SITL
...
- The values are very aggressive, you'll come into contact with another aircraft very soon
- Credit goes to Tridge for this work
- This also allows hardware attached via UART to feed real aircraft into the simulator
This feature is enabled with the following command:
sim_vehicle -A --adsb
9 years ago
Andrew Tridgell
7a5c4ec65d
HAL_SITL: use battery info from FDM if available
9 years ago
Andrew Tridgell
a6ef064950
HAL_SITL: removed support for the old FDM protocol
...
we are now fully converted to the new C++ based SITL system
9 years ago
Caio Marcelo de Oliveira Filho
85d12efbef
AP_HAL_SITL: use millis/micros/panic functions
9 years ago
Andrew Tridgell
95ca0b39a8
HAL_SITL: moved virtual INS sensor to AP_InertialSensor_SITL
9 years ago
Caio Marcelo de Oliveira Filho
49a42dc985
SITL: use a SITL namespace
9 years ago
teddytrowbridge
a4690a7b0a
SITL_State: fixed _set_param_default
...
Fixed _set_param_default() so that it finds the parameter using it's
NAME rather than the entire NAME=VALUE string
9 years ago
Lucas De Marchi
0ed7f94bfc
AP_HAL_SITL: use method for downcast
...
Instead of just doing a static cast to the desired class, use a method
named "from". Pros:
- When we have data shared on the parent class, the code is cleaner in
child class when it needs to access this data. Almost all the data
we use in AP_HAL benefits from this
- There's a minimal type checking because now we are using a method
that can only receive the type of the parent class
10 years ago
Gustavo Jose de Sousa
27b9d71e2c
AP_HAL_SITL: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
15efae5a48
HAL_SITL: use SITL_NUM_CHANNELS
10 years ago
Andrew Tridgell
92c9779d18
HAL_SITL: pass turbulence to simulators
10 years ago
Andrew Tridgell
e7abc07898
HAL_SITL: enable --gimbal option
...
instantiates a MAVLink gimbal
10 years ago
Andrew Tridgell
e7f3716e8c
HAL_SITL: pass in wind speed to C++ simulators
10 years ago
Andrew Tridgell
cd66ce1c74
HAL_SITL: don't advance clock on garbage SIM input
10 years ago
Andrew Tridgell
2a47cc3c81
HAL_SITL: cleanup command line handling
10 years ago
Andrew Tridgell
c81ad1d622
HAL_SITL: reformat HAL_SITL with astyle
10 years ago
Andrew Tridgell
d8791134f9
HAL_SITL: need to use fabs() for double checking
10 years ago
Andrew Tridgell
5158f91263
HAL_SITL: converted command line code to getopt_cpp
10 years ago
Andrew Tridgell
40e3b422b5
HAL_SITL: rename HAL_AVR_SITL to HAL_SITL
...
it is nothing to do with the original AVR emulation now
10 years ago
Andrew Tridgell
24fc1d8ebf
HAL_SITL: added -F option for FDM address
10 years ago
Andrew Tridgell
630cd14252
HAL_SITL: added rover simulator support
10 years ago
Andrew Tridgell
11df612c04
HAL_SITL: added a table of simulator constructors
10 years ago
Andrew Tridgell
878549530d
HAL_SITL: g_state is not needed any more
10 years ago
Andrew Tridgell
25de563687
HAL_SITL: support direct RC input
10 years ago
Andrew Tridgell
a6f41b3ca6
HAL_SITL: removed the need for the FDM thread
...
this also removes the need for the barriers
10 years ago
Andrew Tridgell
ab2d4349b4
HAL_SITL: initial support for internal simulators
10 years ago
Andrew Tridgell
74581a55bc
HAL_SITL: fixed startup of SITL in synthetic clock mode
10 years ago
Tom Pittenger
b7fb4022b4
AVR_SITL: fix compile warnings re float constants
10 years ago
Andrew Tridgell
9748cb1e3e
HAL_SITL: use a synthetic clock when possible
...
this decouples wall clock time from simulation time if the FDM
supports it
10 years ago
Vic
033bd243d6
SITL: Changes in compass for SITL
10 years ago
Andrew Tridgell
8a3d3bed72
SITL: changes for new AP_Baro API
10 years ago
Andrew Tridgell
f13248e5f5
SITL: implement SIM_TERRAIN
...
either use AP_Terrain or flat earth
10 years ago
Andrew Tridgell
d2634a26bd
SITL: added framework for SITL optical flow sensor
10 years ago
Andrew Tridgell
22237f2530
HAL_SITL: fixed handling of SIM_FLOAT_EXCEPT in main thread
10 years ago
Andrew Tridgell
f04f8e226d
SITL: abort on floating point error
...
this creates a core file
10 years ago
Andrew Tridgell
0ce5c99c26
SITL: update for new AP_InertialSensor API
10 years ago
Andrew Tridgell
bf0ce79176
SITL: make it possible to use SITL-HIL
...
strangely enough, using HIL in SITL is a great way to debug HIL!
11 years ago
Jonathan Challinger
e883b889b6
SITL: Add compassmot interference
11 years ago
Andrew Tridgell
4efcae46ab
SITL: cope with more rubbish startup values from JSBSim
11 years ago