Commit Graph

432 Commits

Author SHA1 Message Date
Lorenz Meier 44eff36819 SITL: Run more streams at higher rates 2015-07-09 00:49:40 +02:00
Lorenz Meier 8c004fa6d8 SITL: Move simulator startup to the beginning of the startup 2015-07-04 07:25:08 -07:00
Lorenz Meier e19a068ebb Better SITL gains for yaw 2015-07-02 00:04:06 -07:00
Lorenz Meier efb7d9393e POSIX: Set SITL gains back to normal vehicle defaults 2015-07-01 23:59:39 -07:00
Lorenz Meier 1cb572f484 POSIX: Fix MAVLink sequencing 2015-07-01 18:27:01 -07:00
Lorenz Meier c7e94baa5b Update SITL docs 2015-07-01 12:56:22 +02:00
tumbili c49511fb66 start land detector for SITL 2015-06-26 15:07:22 +02:00
tumbili f7a6afc976 improve SITL startup script 2015-06-26 00:43:26 +02:00
tumbili 8a3ac1f541 set SYS_RESTART_TYPE in sitl startup, normally IO does that 2015-06-22 13:47:11 +02:00
Lorenz Meier 7df785ed50 POSIX: Use the same estimators for multicopters as on the real system 2015-06-21 17:20:31 -07:00
Lorenz Meier 3627456dd6 POSIX config: Fix order of dev IDs 2015-06-19 12:01:48 -07:00
Lorenz Meier bf24d42a79 POSIX: Fix SITL startup script 2015-06-19 10:44:36 -07:00
Lorenz Meier a652642286 POSIX: Fix dataman start order 2015-06-18 14:24:35 -07:00
Mark Charlebois 7734195242 gpssim: cleaned up gpssim code
The gpssim code was named gps_sim vs being consistent with other
simulators (gpssim). It also used warnx and errx and had lots of
commeted out code.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-18 09:02:30 +02:00
Mark Charlebois 17b23f4e80 SITL: Added documentation on file paths
Added description of how to create required directories

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-16 09:58:48 -07:00
Mark Charlebois 834e3c0587 SITL: updated README and rc.S
Changed rc.S to rcS.

Updated README.md to explain the require directory structure and
where to run mainapp from for SITL to work correctly.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 15:48:12 -07:00
Mark Charlebois 8ddfcb7f4b SITL: fixed path to mainapp in documentation
The updated path os Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 13:50:50 -07:00
tumbili e6cee32952 add simulated gps driver to startup for SITL 2015-06-15 21:59:58 +02:00
Lorenz Meier dc839b67e8 Fix POSIX README.md path 2015-06-15 21:36:42 +02:00
Lorenz Meier 48bf40d5d1 POSIX: Add initial SITL instructions 2015-06-15 21:35:10 +02:00
Mark Charlebois 729653ba71 SITL: changed posix_default to posix_sitl
The SITL build is now the default posix build.

The linker script for posix was moved to makefiles/posix.
The rc.S file was moved to posix-configs/SITL/init/
The POSIXTEST board definition is now SITL

To run the SITL test run:

make sitlrun

This replaces the make posixrun target.

The build directory is now Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 09:51:07 -07:00
Lorenz Meier 40f3b49419 POSIX: Re-load params after boot 2015-06-14 03:17:33 -07:00
Lorenz Meier 7254f04f68 POSIX: Complete default startup config so we get a working quad setup on boot. 2015-06-13 17:08:07 -07:00
Lorenz Meier a1b68b5b41 POSIX: Start MAVLink app as default on UDP 2015-06-13 06:53:18 -07:00
Mark Charlebois 527b97e8b4 POSIX: added tone_alarm simulator
The tone_alarm simulator was added to rc.S and the warning output for a
hrt_timer with a 0 expiry times was disabled.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 19:00:49 -07:00
Mark Charlebois 83bcb95999 POSIX: Added sleep command
The baro was not fully initialized when the sensors module tried to
open it. Added a sleep command and a sleep 2 to rc.S so the baro
is initialized by the time the sensors module tried to read it.

Fixed other noisy errors

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 17:28:46 -07:00
Mark Charlebois 93a3eeb569 Simulator: Added Roman's sensors combined topic
Simulator can work as before with -s flag or with Roman's additions to
publish the sensors combined topic using -p flag.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-29 23:45:54 -07:00
Mark Charlebois 58a33dd26a Added simulated tone_alarm and enabled led for POSIX
Added simulated tone_alarm class and enabled led class for posix build.

The simulator implements the led_init, led_on, led_off, led_toggle calls.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-27 14:00:06 -07:00
Mark Charlebois d913ec8dc9 Changed device::px4_device_handle_t to device::file_t
This change allowed the _posix.cpp file changes to be merged
back into the original files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 17:49:35 -07:00
Mark Charlebois 93dea668dc Posix: make simulated devices always pass self tests
To facilitate testing, the simulated devices always return OK for
self tests.

rc.S was also upated to set CAL_XXXY_ID to the devid so tests pass the
calibration check.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 23:29:07 -07:00
Mark Charlebois 19162ba5be Posix: Changed PreflightCheck to read Vdev
PreflightCheck was failing because it was trying to read actual
devices instad of virtual devices.

ADCSIM had a LINUXTEST ifdef that was removed.

posix_run.sh was using the wrong path

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 17:14:52 -07:00
Mark Charlebois f3b5076d70 Linux to posix conversion
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.

There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 09:53:09 -07:00