Tom Pittenger
f20841f491
SITL: add reverse thrust to Plane Sim
9 years ago
Tom Pittenger
1f714ed75d
SITL: handle negative throttle
...
- negative throttle was causing negative offsets
9 years ago
Andrew Tridgell
d820eeaec6
SITL: use AP_Motors conventions for multicopters
...
this makes it easier to add a simulated vehicle to match a
MotorsMatrix frame type
9 years ago
Andrew Tridgell
5efe98a814
SITL: allow quadplane simulator to simulate other frame types
9 years ago
Andrew Tridgell
e62d6711c3
SITL: added very simple tiltrotor simulation
...
uses channel 9 to control tilt of rotors
9 years ago
Andrew Tridgell
6baae735de
SITL: updated fixed wing model based on last_letter skywalker_2013
...
many thanks to Georacer for this code!
9 years ago
Andrew Tridgell
a828db792e
SITL: added SIM_GYR_SCALE_{X,Y,Z}
...
allows testing of gyro scale factor learning in EKF2
9 years ago
Andrew Tridgell
7a7bd0607f
SITL: first version of FlightAxis SITL support
9 years ago
Andrew Tridgell
2777ff63ba
SITL: heli-sim: prevent ground rotation and reduced affect of ground impact
9 years ago
Andrew Tridgell
62b2a2117d
SITL: only report ground contact at most once per second
9 years ago
Andrew Tridgell
0966398d8d
SITL: improved realism of fixed wing sim somewhat
...
still not good, but a bit better for manual flight
9 years ago
Andrew Tridgell
22873ee687
SITL: reduced drag in plane model
9 years ago
Andrew Tridgell
619a4c0925
SITL: use common dynamics code for QuadPlane
9 years ago
Andrew Tridgell
33998a58ac
SITL: prevent aircraft going below ground level
9 years ago
Andrew Tridgell
d425965f6d
SITL: expose home yaw to FDMs
9 years ago
Andrew Tridgell
630d4410d4
SITL: removed debug code from QuadPlane
9 years ago
Andrew Tridgell
8a98ce427c
SITL: moved to common code for attitude/pos update
9 years ago
Andrew Tridgell
f2c8193f8b
SITL: added a QuadPlane model
9 years ago
Andrew Tridgell
6f9e9d761f
SITL: move calculations into multicopter frame class
...
this will enable a QuadPlane model
9 years ago
Andrew Tridgell
fcfd11ef53
SITL: very simple fixed wing simulator
...
useful for debugging
9 years ago
Tom Pittenger
37054d9571
SITL: update units for new adsb mavlink msg
9 years ago
Tom Pittenger
7236b48518
SITL: compiler warning: double to float demotion
...
- replace atof() with strtof() for the correct return time
9 years ago
Tom Pittenger
55f84e9c05
SITL: update ADSB for squawk
9 years ago
Andrew Tridgell
2804434596
SITL: update ADSB for new format
9 years ago
Tom Pittenger
f88de986bc
SITL: created ADSB 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 feature is enabled with the following command:
sim_vehicle -A --adsb
9 years ago
Andrew Tridgell
77a67d73e7
SITL: fill in RPM from JSBSim
9 years ago
Andrew Tridgell
223ce2b6aa
SITL: allow FDM models to provide voltage, current and RPM
9 years ago
Andrew Tridgell
8b456be8c6
SITL: added battery voltage and rpm to SITL state
9 years ago
Andrew Tridgell
585e6dabb8
SITL: FDM structure is no longer a network protocol structure
...
remove unused fields and change comments
9 years ago
Caio Marcelo de Oliveira Filho
d343bfdc6c
SITL: use millis/micros/panic functions
9 years ago
Andrew Tridgell
e1cb9beeef
SITL: expose update rate to HAL_SITL
...
and fixed dataflash reference loop
9 years ago
Robert Lefebvre
4f7246c432
SITL: Helicopter parameter updates
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Andrew Tridgell
724f5511aa
SITL: support multiple jsbsim aircraft types
...
use -f jsbsim:ModelName
9 years ago
Caio Marcelo de Oliveira Filho
11b599bcd0
SITL: use #pragma once
...
For the general case, pragma once is better replacement for of include
guards. One line instead of three, less scopes to close in the end of
the file, no chance to having the outdated names in the define symbol.
9 years ago
Caio Marcelo de Oliveira Filho
288dc2a385
SITL: clean up includes
...
Remove unnecessary includes, reorder them in blocks separated by a blank
line
- Corresponding header file (if exists)
- System headers
- Other ArduPilot library headers
- "Local" headers (from the same library)
9 years ago
Caio Marcelo de Oliveira Filho
8a55b26443
SITL: no need to use #ifdefs
...
Now that SITL is compiled only when it's needed (i.e. using the SITL
board), there's no need to ifdef its files based on the
CONFIG_HAL_BOARD. So remove them.
9 years ago
Caio Marcelo de Oliveira Filho
e2fa456742
SITL: remove "constructor" comment
9 years ago
Caio Marcelo de Oliveira Filho
5ddd802320
SITL: use coding style in class declarations
9 years ago
Caio Marcelo de Oliveira Filho
f0a20cdc7c
SITL: remove trailing whitespace
9 years ago
Caio Marcelo de Oliveira Filho
49a42dc985
SITL: use a SITL namespace
9 years ago
Andrew Tridgell
05876b7e1b
SITL: Changed Rover to SimRover
...
this avoids the rover crash in master
9 years ago
Andrew Tridgell
b9aad88d17
SITL: moved ignition to channel 6
9 years ago
Andrew Tridgell
76aa1a9704
SITL: ensure zero rotor speed with ignition off in gas heli
10 years ago
Michael Oborne
b861233677
AP_HAL_SITL: add file based gps
10 years ago
Andrew Tridgell
a3d7156f28
SITL: raise default simulation rate to 1200Hz
...
this greatly improves things for the heli sim
10 years ago
Andrew Tridgell
85ab1c3444
SITL: added ignition control for gas heli
10 years ago
Andrew Tridgell
c2e68eaf79
SITL: tidy up frame handling a bit
10 years ago
Fredrik Hedberg
e2027a8414
SITL: Add HELI_DUAL_FRAME and HELI_COMPOUND_FRAME.
10 years ago
Gustavo Jose de Sousa
a02e7730ea
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