Paul Riseborough
929c5c2b37
EKF: enable gps fusion flag to be false while fusing air data
2017-10-20 14:44:37 +11:00
Paul Riseborough
204a218ee6
EKF: Allow dead-reckoning using air data
2017-10-20 14:22:06 +11:00
ChristophTobler
f5fd90533a
fix gps and flow flag handling
...
gps flag was not turning false if there was flow
only reset states if we were relying on that sensor only
2017-10-20 14:22:06 +11:00
Paul Riseborough
9857fb9eb6
EKF: publish control limits for optical flow navigation
2017-10-20 14:22:06 +11:00
Paul Riseborough
afa8844eb7
Merge pull request #341 from CarlOlsson/fix/fw_yaw_align2
...
EKF: If aligning yaw for fw with low GPS velocity, use mag
2017-10-20 14:05:52 +11:00
CarlOlsson
2e03084d34
EKF: If aligning yaw for fw with low GPS velocity, use mag
2017-10-19 16:49:54 +02:00
Beat Küng
aa92ef3ca6
airframe 4040_reaper: fix type to quad h
2017-10-19 07:45:40 +02:00
Paul Riseborough
85c076d54e
update ecl/ekf submodule
2017-10-18 11:08:58 +02:00
ChristophTobler
d7c8d53489
use get() for BlockParam
2017-10-18 11:08:58 +02:00
ChristophTobler
2a23162f8d
update ecl/ekf submodule
2017-10-18 11:08:58 +02:00
ChristophTobler
40b8d8bd48
use distance to ground if on ground an distance is out of range
2017-10-18 11:08:58 +02:00
Julian Oes
787931f04f
navigator: check distances between waypoints
...
Instead of just checking whether the first waypoint is too far away from
home it makes sense to also check between waypoints.
This can prevent
- flyaways due to user errors, or
- catch the corner case where a takeoff waypoint is added to a mission
and therefore the first waypoint is not too far away, however, the
subsequent waypoints are still too far away.
2017-10-18 08:42:20 +02:00
Beat Küng
8b797d9b05
logger: use int for loop counter
2017-10-18 08:40:32 +02:00
Beat Küng
d930ad4e9e
mavlink_orb_subscription: reduce orb_exists() check from 10Hz to 3Hz
...
Checking with 3Hz for new topics should be fast enough.
2017-10-18 08:40:32 +02:00
Beat Küng
7381ea8222
logger: remove unused topics commander_state & rc_channels
...
flight review now uses vehicle_status & manual_control_setpoint
2017-10-18 08:40:32 +02:00
Beat Küng
d096ec0b61
vdev_posix: change filemap into a static list of objects instead of pointers
...
to avoid dynamic memory allocations & frees (specifically in orb_exists)
2017-10-18 08:40:32 +02:00
Beat Küng
2668055358
vdev: remove unused fileds from file_t
2017-10-18 08:40:32 +02:00
Beat Küng
deaf125c81
logger: check for newly published topics while not logging
...
If logger is started very early, orb_exists() will fail for a lot of
topics, they will be advertised within the next few seconds.
Logger already dynamically adds subscriptions during logging, but if we
do that before as well, we'll avoid any delays and having to subscribe
to a lot of topics all at once.
2017-10-18 08:40:32 +02:00
Beat Küng
3be252289a
logger: use orb_exists to check if we need to subscribe to the first instance
...
To keep track of the configured interval, we store it as negative file
descriptor, until we do the subscription.
This frees up a considerable amount of file descriptors in most use-cases.
2017-10-18 08:40:32 +02:00
Beat Küng
4c4b528842
uORBManager: fix code style
2017-10-18 08:40:32 +02:00
Beat Küng
2f2c0440c4
orb_exists: change semantics from (is published or subscribed) to (is published)
...
Existing users of orb_exists:
- logger (dynamic subscribe to multi-instances)
- mavlink (orb subscription)
- sdlog2
- preflightcheck (check for home_position)
- wait_for_topic shell command (it's not used)
- orb_group_count() (sensors: dynamic sensor addition)
All use-cases benefit from the changed semantics: they are really only
interested if there is a publisher, not another subscriber.
2017-10-18 08:40:32 +02:00
Daniel Agar
d83073f016
move RTPS to dedicated px4fmu-v{3,4,4pro,5}, posix, sdflight builds ( #8113 )
2017-10-17 16:29:55 -04:00
Daniel Agar
979d092628
travis-ci enable tests under address sanitizier ( #8095 )
2017-10-17 16:26:17 -04:00
Paul Riseborough
61e0c04811
Merge pull request #338 from CarlOlsson/fix/fw_pos_reset
...
EKF: Fix bug when resetting position and velocities for fw due to som…
2017-10-18 07:02:34 +11:00
Matthias Grob
f4243160e2
Quaternion: changed comments because of typos and unclear inconsistent indexing
2017-10-17 17:37:23 +02:00
Matthias Grob
d259ab2108
Test: add Quaternion rotate() test that catches non-commutating rotations
2017-10-17 17:37:23 +02:00
Matthias Grob
ee2219b836
Quaternion: replace conversion in rotate() with AxisAngle call
2017-10-17 17:37:23 +02:00
Matthias Grob
b241cf5c95
Quaternion: Adjusted rotate() to the Hamilton convention (which we switched to)
...
Note: This error was not caught by a test because the test included only trivial cases which do not explore non-commuting quaternions.
2017-10-17 17:37:23 +02:00
Matthias Grob
6b1fea76d0
Quaternion: added and adjusted comments to further explain conjugation and derivative functionality
2017-10-17 17:37:23 +02:00
Matthias Grob
0527471a52
Matrix: adjust buffer size calculation to account for additional characters
...
Note: If the buffer is too small there's no memory corruption because of the snprintf limit but part of the output gets missing.
2017-10-17 17:37:23 +02:00
Daniel Agar
c607805154
travis-ci allow coverage failures ( #8145 )
2017-10-17 10:54:45 -04:00
Matthias Grob
e12bfa30d4
mc_att_control: defualt parameters set maximal acro rates to 2/1.5 turns per second for roll,pitch/yaw
2017-10-17 16:54:16 +02:00
Matthias Grob
8b09eaf124
mc_att_control: use SuperExpo input curve for acro mode to further enhance the stick feel
2017-10-17 16:54:16 +02:00
Matthias Grob
455ba0e1b5
mathlib Functions: added SuperExpo function for stick feel enhancement
2017-10-17 16:54:16 +02:00
Matthias Grob
3ce5525b7c
mc_att_control: use expo input for acro mode to allow for high input rates without loosing input sensitivity
2017-10-17 16:54:16 +02:00
CarlOlsson
c81cdfa1ce
EKF: Fix bug when resetting position and velocities for fw due to something else than bad yaw estimate
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2017-10-17 15:08:09 +02:00
Paul Riseborough
410697cb0c
Merge pull request #337 from CarlOlsson/fix/comment
...
EKF: fixed comment
2017-10-17 21:15:06 +11:00
CarlOlsson
8c83167857
EKF: fixed comment
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2017-10-17 11:41:55 +02:00
Beat Küng
747e392be6
px4fmu-v2 cmake config: disable team blacksheep telemetry driver
...
we're out of flash again :/
2017-10-17 09:56:01 +02:00
Beat Küng
291872a28d
mavlink: fix flight_information: use COM_FLIGHT_UUID instead of the board id
...
The board id was used as flight id which does not make sense.
2017-10-17 09:56:01 +02:00
Beat Küng
85e82dca0d
commander: add COM_FLIGHT_UUID param, increased upon disarm
2017-10-17 09:56:01 +02:00
Beat Küng
fa8453443f
fix commander: remove arming_state_changed, check for was_armed != armed.armed instead
...
arming_state_changed was not set in all places where an arming transition
occurred, for example when calling arm_disarm() from auto-disarm.
We did not notice because the state is published with at least 5 Hz already.
2017-10-17 09:56:01 +02:00
José Roberto de Souza
239de7191f
dataman: Prevent database corruption
...
The size in g_per_item_size[item] is the real struct size
+ DM_SECTOR_HDR_SIZE bytes of header and the backend functions were
not taking in care it. So a call to dm_write() with more bytes than
the real struct is allowed, causing corruption in the header of the
next item.
Kudos to jeonghwan-lee for finding it. https://github.com/PX4/Firmware/issues/7927
2017-10-16 23:38:03 +02:00
Luís Felipe Strano Moraes
cc724438f9
Adding Sugnan as maintainer for Intel Aero ( #8133 )
...
Adding Sugnan Prabhu as maintainer for Intel Aero.
With great power comes great responsibility!
2017-10-16 11:25:32 -04:00
rde-mato
78a9658163
define SDP3X_SCALE_PRESSURE_SDP3X corrected
2017-10-15 15:54:08 +02:00
sanderux
fd6f2192ac
Code style
2017-10-15 15:34:59 +02:00
sanderux
b01d887700
When switching to land in VTOL, update land target during back transition
2017-10-15 15:34:59 +02:00
Khoi Tran
ff6ffa73b5
Fix typos in MPU6000 driver comments
2017-10-15 15:33:25 +02:00
Khoi Tran
1594c80bf4
Add icm20602 to auav-x21 sensors startup
2017-10-15 15:33:25 +02:00
Beat Küng
98e6ba858d
logger: change SDLOG_PROFILE into a bitset
...
This is more flexible, allowing a combination of sets.
The default enables the same set & rates as before
2017-10-14 14:21:11 +02:00