Commit Graph

77 Commits

Author SHA1 Message Date
Lorenz Meier c1a2d19459 MAVLink Sim: Use time delta 2015-11-25 11:13:32 +01:00
Lorenz Meier bd4497f883 Simulator: Add performance counters for delay 2015-11-24 14:23:59 +01:00
Lorenz Meier 07df1be841 Simulator buffer: Ensure we do not become limited on message size 2015-11-22 12:25:01 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
tumbili 354e623318 support for vtol simulation 2015-11-18 16:11:10 +01:00
Mark Charlebois 3f20d78dfe Fixed code style
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 14:01:39 -08:00
Mark Charlebois dbe3b0e52b Re-enabling code to handle DF framework
Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 13:51:39 -08:00
jgoppert ca5a2d1fca Fixed some sitl init bugs. 2015-11-07 11:49:06 -05:00
Lorenz Meier 8421742906 Add Gazebo submodule as simulator dependency 2015-10-25 18:25:53 +01:00
Lorenz Meier 87ea6f54b7 MAVLink simulator: Update code style 2015-10-19 13:52:29 +02:00
Daniel Agar 4151522902 only enforce frame size for nuttx 2015-10-06 23:37:33 -04:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
Lorenz Meier fefdcd3fa9 Merge master into cmake-2 2015-10-03 15:34:30 +02:00
v01d 2a1d838851 always publish flow (no low-level sensor interface implemented yet) 2015-10-02 23:45:36 +02:00
v01d 068dd76763 simulator: add publishing of HIL_OPTICAL_FLOW as uORB topic 2015-10-02 23:45:36 +02:00
Lorenz Meier 9eb748ed5b Always publish RC data from Pixhawk 2015-09-20 17:48:35 +02:00
Lorenz Meier 6a2e50d2a8 Simulator: Cleaner data structure init 2015-09-20 16:42:48 +02:00
Lorenz Meier 985243c932 Merged 2015-09-20 15:06:27 +02:00
Lorenz Meier fe644fb3e0 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 12:56:14 +02:00
Lorenz Meier 324c786e0a Simulator: Init sensor data diligently 2015-09-20 12:55:32 +02:00
Lorenz Meier 08c56085b3 Merged cmake-2 2015-09-20 11:37:28 +02:00
Lorenz Meier 30d0dab8e6 Simulator: Fix code style 2015-09-20 11:35:52 +02:00
Lorenz Meier bbccb8ed5f Simulator: Add required POSIX header 2015-09-20 10:58:29 +02:00
Lorenz Meier a2ea70c7a0 Simulator: Move to semaphore abstraction 2015-09-20 00:29:03 +02:00
Lorenz Meier 0597c57c32 Simulator: Provide better and more user-facing feedback 2015-09-12 15:44:40 +02:00
Lorenz Meier 458b72352a Simulator: POSIX adjustments 2015-09-11 21:49:29 +02:00
Mark Charlebois 91cf77c68b Added more missing modules for posix
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-08 16:12:45 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier a1f93f52b0 Merge pull request #2811 from mcharleb/qurt_rebase_updates-3
Qurt rebase updates 3
2015-09-05 11:55:03 +02:00
tumbili 0fe272c9b3 support simulated airspeed 2015-09-04 22:34:28 +02:00
Mark Charlebois 54bae34a2c Build fixes for qurt after rebase on PX4 master
Removed the re-definitions of the usage method in the posix/main.cpp file.
Added qurt_external_hook interface to call externally linked module.
Fixed code format to comply with PX4 style.
Added usage information to main app and handled cases for unknown arguments.
Fixed the orb_priority interface to use int32_t instead of int.
Fixes to get hil working with led changes.
Added the config_eagle_adsp.mk file and update the make files to to use new
include/lib paths

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-04 11:09:29 -07:00
tumbili 980217468f set actuator commands to zero if vehicle status is still unknown 2015-09-02 21:58:29 +02:00
tumbili b1850a316b support sitl for planes 2015-09-01 09:40:20 +02:00
Mark Charlebois 009f528266 Fixes for posix-arm and qurt builds
Ifdefed out deadcode in position_estimator_inav_main.c as the
deadcode does not compile for qurt.

Added fixes to get a successful build for posix-arm and qurt targets.
Removed CLOCK_REALTIME def from px4_time.h for qurt and removed unused
variables in att_est_q and mc_att_control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-05 18:34:46 -07:00
Lorenz Meier f0f28d5420 POSIX SIM: Reset the HRT on system boot 2015-07-04 08:35:11 -07:00
Lorenz Meier 5a1af860ab Sim: Enforce boot order is correct, sim starts first 2015-07-04 08:09:12 -07:00
Lorenz Meier 32bf4dc773 simulator: Add output so user knows that the simulator / system is waiting for data 2015-07-04 07:25:08 -07:00
Mark Charlebois c611749b4f Simulator: modified -p to publish individual sensor data
The simulator was changed to publish the sensor data that is read
by the sensors module when the -p flag is passed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 18:20:14 -07:00
Lorenz Meier 878284701d POSIX: Simulator: Use port 14560, since 14550 is QGroundControls default port 2015-06-19 10:45:26 -07:00
Mark Charlebois d66b6ea701 POSIX: px4_getpid() fix
Since the PX4 code uses both px4_task and pthread APIs,
px4_getpid() must be save to call from either context.

On posix, this means we have to always return the pthread ID.

Reverted simulator change of pthread to px4_task

There may have been side effects if this was build for a target that
has process/task scoped file descriptors. It is now safe to call
px4_getpid() from this pthread context with this change for the
posix build for px4_getpid().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 08:25:57 -07:00
Mark Charlebois 7e7513bc15 POSIX: change pthreads to px4_tasks in simulator
The simulator was using pthread APIs directly so calls to px4_getpid()
would fail since the task ID was not known. Changed simulator to use
px4_task_spawn_cmd.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-13 16:44:29 -07:00
tumbili a5c214a7bb use orb_advertise_multi:
- subscribe to actuator controls after topic has been advertised
2015-06-08 22:21:59 -07:00
tumbili 065ec5b2dc no need to send non-controls mavlink messages to jMAVSim because we can use mavlink app with udp 2015-06-08 22:21:59 -07:00
tumbili 8eee7ba321 compute atmospheric pressure from altitude 2015-06-08 22:21:59 -07:00
Mark Charlebois fd1effa4fe Simulator: UART changes
Some changes were needed to use the simulator and the UART for rc control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
tumbili 5c013af574 save gps data so driver can read 2015-06-08 22:21:59 -07:00
tumbili 45ee36234d activate sending thread only once got message from simulator 2015-06-08 22:21:58 -07:00
tumbili f0a3210e94 major simulator rework:
- wait for first message from jMAVSim
  before sending data
- publish raw rc data coming from PIXHAWK (temporary)
- send some interesting messages to jMAVSim
- prepare sensor data for sim drivers to read
2015-06-08 22:21:58 -07:00
Lorenz Meier 9882b78383 Merge pull request #2248 from mcharleb/gyrosim-fix
Gyrosim: Fixed constant looping
2015-06-02 01:40:49 -07:00