Sean Matthews
1c56cad3b1
Uses astyle 2.06
2017-06-15 08:56:49 +02:00
Sean Matthews
08891526fd
Fixes #6484 : Bug in Offboard mode incorrect use of type_mask
2017-06-15 08:56:49 +02:00
Lorenz Meier
d5c923c7ef
Navigator: Fix RTL backtransition for VTOL
...
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.
Partially reverts https://github.com/PX4/Firmware/pull/7249
2017-06-15 08:27:23 +02:00
Matthias Grob
e28f8bff67
commander: make commonly spoken strings more user friendly
...
these technical messages might not be suitable for the user of a product
2017-06-15 07:50:41 +02:00
Mohammed Kabir
5a96490c68
sensors : fix race condition triggered by slow-to-boot external sensors
2017-06-14 19:53:07 +02:00
Mohammed Kabir
51b23f0b57
sensors : add parameters for 4th mag into used parameters list
2017-06-14 19:53:07 +02:00
Beat Küng
ce7d8d2270
sensor_mag.msg: add is_external flag & set it in the mag drivers
...
With this we don't have to use the ioctl MAGIOCGEXTERNAL, which does not
work on POSIX (eg. RPi).
2017-06-14 19:53:07 +02:00
Beat Küng
ba3d66abba
voted_sensors_update: fix invalid/stale mag data on posix
...
Problem: _mag_device_id is used to get the correct rotation matrix for each
mag. But on POSIX, _mag_device_id was always 0, leading to invalid rotation
matrices.
This resulted in stale mag error messages (rot matrix=0 ==> mag data=0).
_mag_device_id was 0 because there are no /dev/magX devices (eg. on RPi),
thus the mag driver could not be opened.
This patch does: get the device id from the uorb topic instead. We still
need the device handle on certain platforms to apply the calibration params
and to check if the mag is internal or external.
Problem left: on POSIX, the check for external mag does not work.
2017-06-14 19:53:07 +02:00
Beat Küng
76f593afb0
fix voted_sensors_update: remove DevMgr::releaseHandle(h);
...
the 'continue' continues with the inner loop, whereas the outer loop is
responsible for opening the handle. Thus the inner loop needs to keep it
open.
2017-06-14 19:53:07 +02:00
Beat Küng
af6846b9a8
fix voted_sensors_update: use int32 for param_get()
2017-06-14 19:53:07 +02:00
Beat Küng
ce27e75a76
sensors: better status output
2017-06-14 19:53:07 +02:00
Sean Matthews
c41185a277
Fixes valid yaw check
2017-06-14 01:23:37 +05:30
Sean Matthews
d9cec600ed
Fixes #7313 : Invalid setpoint yaw after takeoff
2017-06-14 01:23:37 +05:30
Julien Lecoeur
89a8c656f2
Unneeded includes
2017-06-13 11:50:00 +02:00
Julien Lecoeur
1a6d2c491b
Remove explicit template instantiation of Subscription<T>
2017-06-13 11:50:00 +02:00
Julien Lecoeur
550aee4da3
Remove explicit template instantiation of Publication<T>
2017-06-13 11:50:00 +02:00
Julien Lecoeur
3ff1f4d16f
Move uORB::Subscription template implementation to header
2017-06-13 11:50:00 +02:00
Daniel Agar
bd60f87283
move param jinja templates into relevant module
2017-06-12 12:18:53 -04:00
Daniel Agar
4937449890
move parameter unittest into systemcmds
2017-06-12 12:18:53 -04:00
Daniel Agar
f26cd01d16
param gen reorganize and fix DISABLE_PARAMS_MODULE_SCOPING
2017-06-12 12:18:53 -04:00
ChristophTobler
9b5de23553
add ref_timestamp (time when origin was set) to lpe
2017-06-12 09:39:41 +05:30
Lorenz Meier
a1a0dd37dc
Commander: Only report GPS lost errors if armed
2017-06-11 11:19:25 +02:00
Lorenz Meier
a25330762a
Commander: Adjust airspeed checks on prearm condition
...
The previous approach would work with old low-end sensors, but with new high-end sensors we get a lot of false alarms on the bench. Relaxing the check to only apply pre-arm will ensure its now only run when the user intents to take off, at which point the airframe should be with pitot covers off in the field.
2017-06-11 11:19:25 +02:00
Lorenz Meier
d104f984d4
Sensors: print airspeed validator status
2017-06-11 11:19:25 +02:00
Daniel Agar
5ee79648b7
FixedwingPositionControl cleanup comment spacing
2017-06-08 22:04:30 -04:00
Daniel Agar
35864841ba
FixedwingPositionControl remove engine failure thrust sp
...
- this is already done in fw_att_control
2017-06-08 22:04:30 -04:00
Daniel Agar
9511dfa577
FixedwingPositionControl combine TECS resets
2017-06-08 22:04:30 -04:00
Daniel Agar
0e8b0fe013
FixedwingPositionControl clang tidy fixes
2017-06-08 22:04:30 -04:00
Daniel Agar
47ec291340
FixedwingPositionControl add header guard
2017-06-08 22:04:30 -04:00
Daniel Agar
376fdd4206
FixedwingPositionControl unnecessary struct
2017-06-08 22:04:30 -04:00
Daniel Agar
3313ade291
FixedwingPositionControl update copyright and control_task
2017-06-08 22:04:30 -04:00
Daniel Agar
77eaa3ae61
fw_pos_control_l1 rename Landingslope to match case
2017-06-08 22:04:30 -04:00
Daniel Agar
23dd2e537b
fw_pos_control_l1 rename to match class
2017-06-08 22:04:30 -04:00
Daniel Agar
ea448e7fc2
fw_pos_control_l1 extract FixedwingPositionControl header
2017-06-08 22:04:30 -04:00
Daniel Agar
8d5c955af4
remove partial CMD_OVERRIDE_GOTO implementation ( #7356 )
...
- closes #7326
2017-06-08 22:03:50 -04:00
Daniel Agar
3b7e57a5b2
navigator/follow_target remove unused
2017-06-08 22:03:08 -04:00
Daniel Agar
d6e9287f51
mc_att_control comment out unused rates_i_scaled
2017-06-08 22:03:08 -04:00
Daniel Agar
70a485826d
attitude_estimator_q remove unused and small publish cleanup
2017-06-08 22:03:08 -04:00
Dennis Mannhart
e0d81b4c5e
mc_pos_control: if triplet not valid in z ignore it
2017-06-07 16:43:36 +02:00
Dennis Mannhart
2a943f4bd0
mc_pos_control: only set current_setpoint to true if triplet valid
2017-06-07 16:43:36 +02:00
Kabir Mohammed
5cbaaa633b
FINALLY fix mag rotation issues. ( #7366 )
...
* sensors : second cut at fixing mag calibration - remove old problematic code
* sensors : use more intuitive naming for loop variables
2017-06-07 10:49:57 +02:00
Marco Zorzi
aef522553e
unmanned ground vehicle (UGV) controllers and Traxxas Stampede configuration ( #7175 )
2017-06-06 13:26:51 -04:00
Lorenz Meier
e60fbccbee
MAVLink app: Add ability to output packets for training and inspection
2017-06-05 22:44:21 +02:00
Daniel Agar
833cdc9236
EKF2 update GPS and airspeed delay defaults ( #7353 )
...
* update ecl to latest
* EKF2_GPS_DELAY change default 200ms -> 110ms
- 110msec is more representative of what most users are flying
* EKF2_ASP_DELAY change default 200ms -> 100ms
The EKF is relatively insensitive to airspeed sensor delays and the effective delay is installation specific, so it has been set to a value that does not cause the data buffers to be longer than is required to accomodate GPS delays.
2017-06-05 10:31:46 +10:00
Nacho Carnicero
e6670d7926
Drone yaw set to destination waypoint yaw in LOITER mode if MIS_YAWMODE=0 ( #7269 )
...
* Drone does not change orientation while in LOITER mode if MIS_YAWMODE=0
* Fix code style
* Some more code style fixes
* Format checks passed
2017-06-04 20:01:40 +08:00
Daniel Agar
1671c32238
BlockParamExt replace with BlockParam reference types
2017-06-04 18:22:42 +08:00
Daniel Agar
b03818cd0e
controllib move old blocks to segway
2017-06-04 18:22:42 +08:00
Daniel Agar
db816982cd
px4params don't search recursively for params
...
- move controllib_test under controllib
2017-06-04 18:22:42 +08:00
CAI Dongcai
0dfd8cd039
Update fw_att_control_main.cpp
...
Make the declarations of the variables "roll_sp, pitch_sp, yaw_sp, throttle_sp," in the main loop more readable.
2017-06-04 18:17:29 +08:00
Lorenz Meier
d9dd1b231d
UAVCAN server: Use correct MAVLink header version
2017-06-04 10:16:33 +02:00