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
Andreas Antener
4b9a793c8f
properly handle takeoff waypoint when not currently at takeoff location
2016-01-07 22:24:32 +01:00
Lorenz Meier
268990f216
Merge pull request #3433 from PX4/posix_uart
...
MAVLink app: Enable network and serial on POSIX
2016-01-06 09:27:18 +01:00
Andreas Antener
99f4487cc3
allow yawing with 0 throttle, changed condition to not being landed
2016-01-06 08:33:51 +01:00
Lorenz Meier
2ce3ef1caa
VTOL: initialize fds struct
2016-01-05 22:11:06 +01:00
Lorenz Meier
e9865071fa
Merge pull request #3439 from PX4/vtol_sitl
...
VTOL fixes for SITL
2016-01-05 21:14:34 +01:00
dogmaphobic
bd6e4b9d9d
Merge remote-tracking branch 'PX4/master' into logHandler
...
* PX4/master: (45 commits)
don't use default source address for onboard udp link, wait on remote
Configure Easystar HIL setup to do Runway takeoff
ROMFS: Set 3DR quad tuning to more realistic default values
Fix incomplete boot on new EKF config
Fix px4fmu-v2_ekf2 config
Updated MAVLink protocol version
MAVLink: Start slightly differently on USB
Start shell only if SD card not present
Update ECL
NuttX configs: added px4fmu-v2_ekf2 target for EKF2 development on Pixhawk
Get QuRT drivers out of the way, as we are using our own
Fix POSIX eagle config
Remove unmaintained NuttX config
VDev: fix code style
Add new posix_eagle_default and qurt_eagle_default targets
Fix QuRT build error
Fix FMUv4 USB PID
Speed up Vagrant
VTOL: Fix motor index use in VT_FW_MOT_OFF. Create new param to re-default all deployed vehicles to not shut down motors.
VTOL: Fix MOT_OFF bug
...
2016-01-05 01:03:11 -05:00
dogmaphobic
c0773c0157
Handling missing data requests without clearing session.
...
Letting stream handle all transfers.
Tested and fully working with new QGC PR.
2016-01-05 01:00:48 -05:00
Andreas Antener
11ed5169cc
don't use default source address for onboard udp link, wait on remote
2016-01-04 23:58:05 +01:00
Roman
a79c6be39b
tailsitter: go into mc mode it transition switch not assigned
2016-01-04 18:19:22 +01:00
Lorenz Meier
5227dbe26a
MAVLink: Send RC_CHANNELS_OVERRIDE
2016-01-04 12:35:23 +01:00
Lorenz Meier
c343926b51
MAVLink app: Enable network and serial on POSIX
2016-01-04 12:25:35 +01:00
Lorenz Meier
a8a9c9b8ec
MAVLink: Start slightly differently on USB
2016-01-03 15:28:04 +01:00
Lorenz Meier
3b2e82cd62
VTOL: Fix motor index use in VT_FW_MOT_OFF. Create new param to re-default all deployed vehicles to not shut down motors.
2016-01-01 14:44:42 +01:00
DroneBuster
56e5c50703
VTOL: Fix MOT_OFF bug
2016-01-01 14:39:03 +01:00
Lorenz Meier
276855acd2
EKF2: Remove todo
2016-01-01 11:39:16 +01:00
Paul Riseborough
28f5cb8fe6
ekf2: Changes required to enter POSCTL mode
...
Adds missing local position and global position data
2016-01-01 12:30:12 +11:00
Andreas Antener
3d971e214a
don't update local position reference if home position changes
2015-12-31 13:24:12 +01:00
Andreas Antener
d39e313768
use the proper check to prevent multiple mavlink instances on the same udp port, added warning when different remote than localhost connects to udp
2015-12-31 11:50:52 +01:00
Lorenz Meier
eff94677a4
MAVLink: Only broadcast heartbeat on local network if not in onboard mode
2015-12-30 17:26:09 +01:00
Lorenz Meier
4f548f328a
Set range to 0.9 Ga max since full scale range is 1.3 Ga
2015-12-30 11:54:52 +01:00
Lorenz Meier
62763904f2
Simulator: Add performance counter for incoming packet interval
2015-12-29 17:12:29 +01:00
Lorenz Meier
fb3fade653
VTOL: Use correct motor off define
2015-12-29 14:22:37 +01:00
Lorenz Meier
5dc4ea8146
Sim: minor cleanups
2015-12-29 14:17:59 +01:00
dogmaphobic
b4e69ccd4b
One day I will get this right.
...
I had not tested the build under POSIX
2015-12-28 17:02:32 -05:00
dogmaphobic
1869b6ff97
Fix build error.
2015-12-28 16:05:16 -05:00
dogmaphobic
76cb67ae35
Add mavlink log messages handler
2015-12-28 15:00:02 -05:00
Thomas Gubler
7c52e8b96f
Improve landing for special yawmode settings
2015-12-28 16:49:09 +01:00
Thomas Gubler
2af066bc6a
guard against invalid yawmode values
2015-12-28 16:49:09 +01:00
Lorenz Meier
ea1439c627
Commander: Support landing through commandline
2015-12-28 16:00:32 +01:00
Andreas Antener
68c9c4ae0f
better defaults for relevant landing/takeoff parameters
2015-12-28 15:23:20 +01:00
Andreas Antener
b5f3c2d30d
ramp up jump velocity instead doing a huge step
2015-12-28 15:23:20 +01:00
Andreas Antener
98bec0e175
also filter acceleration to filter out the bump on the ground on landing
2015-12-28 15:23:20 +01:00
Andreas Antener
e0405617ef
also don't reset possp if near a loiter sp
2015-12-28 15:23:20 +01:00
Andreas Antener
ee0aa7b37d
recalculate absolute thrust before limiting
2015-12-28 15:23:20 +01:00
Andreas Antener
d9878493bd
cleaning up takeoff/landing logic, commenting on magic values
2015-12-28 15:23:20 +01:00
Andreas Antener
c033ef959a
proper setpoint handling on takeoff, switch to loiter sp when takeoff finished
2015-12-28 15:23:20 +01:00
Andreas Antener
fe90e7882b
do mission notifications for landing, switch to idle setpoint when landed
2015-12-28 15:23:20 +01:00
Andreas Antener
05a73d2821
added takeoff logic for position controller to get the uav off the ground fast and transition smoothly to poctl after takeoff, added landing logic to reduce thrust to zero once on the ground
2015-12-28 15:23:20 +01:00
Andreas Antener
ea7a1a92b5
correct thrust limiting during landing with margin, don't reset position setpoint when switching from takeoff to posctl and allow high enough z velocity for position lock
2015-12-28 15:23:20 +01:00
Andreas Antener
09b5bdb1ee
in mc auto: do not reset the position sp while near the waypoint, should make switching to manual pos control smoother
2015-12-28 15:23:20 +01:00
Andreas Antener
5a009ce4c8
don't throttle up anymore during landing
2015-12-28 15:21:50 +01:00
Andreas Antener
f17c5d8d55
fixing takeoff mission and swtiching to previous flight mode after land/takeoff
2015-12-28 15:21:50 +01:00
Andreas Antener
64349c7a09
ability to switch to land mode
2015-12-28 15:21:50 +01:00
Andreas Antener
c32d44d8b4
disable position controller when landed and in manual control
2015-12-28 15:21:50 +01:00
Andreas Antener
3c4141ff50
increased time for less strict takeoff detection after arming
2015-12-28 15:21:50 +01:00
Andreas Antener
44f13006dd
update mission state on takeoff
2015-12-28 15:21:50 +01:00
Andreas Antener
bfb862763c
switching to prev main state after landing when disarmed
2015-12-28 15:21:50 +01:00
Andreas Antener
fbf42c8949
added auto takeoff support, updated configuration for solo and generalized landing mission items
2015-12-28 15:21:50 +01:00
Andreas Antener
e8e81650dc
implemented command ACK
2015-12-28 15:21:50 +01:00