Lorenz Meier
155a0d7f18
Code style in MAVLink simulator
2016-03-12 11:06:51 +01:00
Lorenz Meier
8f46c07249
Sim: Do not drain the battery all the way to zero yet
2016-02-28 17:17:59 +01:00
Lorenz Meier
c5b0650c23
Sim: Add batttery sim
2016-02-24 12:31:24 +01:00
Mark Charlebois
4c7ec2b0ff
Reverted change to src/modules/simulator/simulator_mavlink.cpp
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:45 +01:00
Mark Charlebois
014f15d8b0
Rebase changes on upstream master
...
This brings in many of the changes from the PX4 fork on ATLFLight.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Mark Charlebois
a996b94c41
Reverted change to src/modules/simulator/simulator_mavlink.cpp
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:42 +01:00
Mark Charlebois
9f3bf8e9f4
Rebase changes on upstream master
...
This brings in many of the changes from the PX4 fork on ATLFLight.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Lorenz Meier
ac788ad5dc
MAVLink: Fix code style
2016-02-05 09:16:41 +01:00
Lorenz Meier
8e62c9eb8d
Use delay API
2016-02-05 00:53:22 +01:00
tumbili
f2e7d5ca77
simulator: support for standard vtol plane
2016-01-14 16:07:01 +01:00
Lorenz Meier
4907bf3374
Sim: Keep MAVLink parse status persistent, because that is the frickin state machine
2016-01-07 23:19:20 +01:00
Julian Oes
72dc4d3290
simulator: fix mavlink parsing of sim+RC stream
...
The mavlink stream from the simulator and the mavlink stream over serial
(used for RC input) both had the same MAVLINK_COMM channel and were
therefore sharing an internal buffer in mavlink_parse_char. This meant
that most (low rate) serial messages were getting swallowed by the high
rate simulator stream.
This change fixes the issue where RC input was not properly arriving in
Gazebo, however it breaks the `commander takeoff` command in SITL which
needs to be investigated.
2016-01-07 23:08:32 +01:00
Lorenz Meier
62763904f2
Simulator: Add performance counter for incoming packet interval
2015-12-29 17:12:29 +01:00
Lorenz Meier
5dc4ea8146
Sim: minor cleanups
2015-12-29 14:17:59 +01:00
Lorenz Meier
988ff59103
Fix simulator PWM range
2015-12-14 16:16:25 +00:00
tumbili
33f85a5024
fixed unused variable
2015-12-01 15:01:15 +01:00
Lorenz Meier
5f9da470bb
Do not redefine GNU source in modules
2015-12-01 13:49:55 +01:00
Lorenz Meier
72e0664f1e
Simulator: Add missing header
2015-12-01 13:41:33 +01:00
Lorenz Meier
f57eff5433
Bump internal sim thread priority. Output warning if sim packets are spaced more than 10 ms apart, giving some hints what is at miss with the system
2015-12-01 13:02:17 +01:00
Lorenz Meier
247d7960b9
MAVLink sim: Code style
2015-12-01 12:43:38 +01:00
Lorenz Meier
1e99b04d9c
Fixes in simulator interface
2015-12-01 12:32:22 +01:00
Lorenz Meier
eb64a6813f
Sim MAVLink: Return correct type, remove very uninformed comment
2015-12-01 12:01:10 +01:00
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
tumbili
354e623318
support for vtol simulation
2015-11-18 16:11:10 +01:00
jgoppert
ca5a2d1fca
Fixed some sitl init bugs.
2015-11-07 11:49:06 -05:00
Lorenz Meier
87ea6f54b7
MAVLink simulator: Update code style
2015-10-19 13:52:29 +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
324c786e0a
Simulator: Init sensor data diligently
2015-09-20 12:55:32 +02:00
Lorenz Meier
30d0dab8e6
Simulator: Fix code style
2015-09-20 11:35:52 +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
tumbili
0fe272c9b3
support simulated airspeed
2015-09-04 22:34:28 +02: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
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