Beat Küng
b855d76f28
fix gps: subscribe to topics in the gps thread instead of the shell thread
...
NuttX does not inherit file descriptors when creating new tasks.
2016-04-25 13:35:41 +02:00
Beat Küng
58a7db51c3
gps: add RTCM message rate to the 'gps status' command
2016-04-25 13:35:41 +02:00
Beat Küng
acc40c8217
orb unittest: increase waiting time so that test does not fail on slow devices
...
This test failed on the pixracer because the subscriber thread was too slow
and thus orb messages got lost. This behavior is expected, but the test
should not fail because of that, so we increase the sleeping time.
2016-04-25 13:35:41 +02:00
Julian Oes
0031220c1a
df_mpu9250_wrapper: add reporting for range hits
...
We now send log messages over mavlink in case excessive vibrations are
detected.
2016-04-25 12:48:48 +02:00
Julian Oes
84c87696fe
df_mpu9250_wrapper: use the elapsed counter
2016-04-25 12:48:48 +02:00
Julian Oes
20e494410a
df_mpu9250_wrapper: add an info function
2016-04-25 12:48:48 +02:00
Julian Oes
23f882063e
df_mpu9250_wrapper: also free the perf_counters
2016-04-25 12:48:48 +02:00
Julian Oes
1cf7de8fdb
perf_counter: perf_print_counter now works on QURT
2016-04-25 12:48:48 +02:00
Julian Oes
d55b4802f1
df_mpu9250_wrapper: add perf counters
2016-04-25 12:48:48 +02:00
Julian Oes
4ac67f69d1
DriverFramework: updated submodule
...
This brings the latest renamed counters.
2016-04-25 12:48:48 +02:00
Julian Oes
944acfaf75
simulator: change after perf_counter API change
2016-04-25 12:48:48 +02:00
Julian Oes
fa6fe4ca96
px4io: small change after perf_counter API change
2016-04-25 12:48:48 +02:00
Julian Oes
662c097803
perf_counter: add function to set a count
...
This needed the set function which sets elapsed to change the name to
avoid ambiguities.
2016-04-25 12:48:48 +02:00
Julian Oes
08a1941fd6
df_mpu9250_wrapper: fix style
2016-04-25 12:48:48 +02:00
Julian Oes
75444ae084
df_mpu9250_wrapper: use FIFO time offsets
...
- Make use of the FIFO time offsets provided by the MPU9250 driver.
It allows to use proper dt for the integration.
- Got rid of the unnecessary perf_counters for now.
- Properly use the changed integrator lib.
- Provide integral_dt for ekf2.
2016-04-25 12:48:48 +02:00
Julian Oes
d824ca3a14
integrator: fix style
2016-04-25 12:48:48 +02:00
Julian Oes
544f0b70a9
DriverFramework: updated submodule
...
This brings error counters and timestamp offsets between FIFO samples.
2016-04-25 12:48:48 +02:00
Julian Oes
302bf879de
integrator: improvements and cleanup
...
The integrator had an untested read mode which did not apply the coning
correction. Instead of keeping two integrals (auto/read) it is now one
and the reset mechanism can be selected by setting the
auto_reset_interval to 0 to disable it or some positive number else.
Also, the integrator could potentially explode if a (single) timestamp
was wrong, so before the last integrated one. This is now caught with a
dt of 0 instead of inf/nan.
2016-04-25 12:48:48 +02:00
Julian Oes
f91be1e281
DriverFramework: updated submodule
...
This raises the sampling frequency from 500 Hz to 8kHz using the FIFO
buffer.
2016-04-25 12:48:48 +02:00
Beat Küng
afefa4d2a0
gps: use a max poll timeout of 50ms to check for orb msgs more often
...
Before this, I measured a max time spent in poll of 197ms. By checking at
least every 50ms we make sure to not lose any orb messages.
2016-04-25 09:48:24 +02:00
Beat Küng
f62324c8a6
mavlink_receiver.cpp: use sizeof(gps_inject_data_topic.data) instead of hardcoded size
2016-04-25 09:48:24 +02:00
Beat Küng
6029551c63
gps & mavlink receiver: use C arrays instead of std::array<>
2016-04-25 09:48:24 +02:00
Beat Küng
4cf08ba580
gps handleInjectDataTopic: repeatedly check for new orb messages
...
Without that there were still lost messages, now it's all fine (tested
under Linux)
2016-04-25 09:48:24 +02:00
Beat Küng
c8f2a7ea02
update gps submodule (fix coding style)
2016-04-25 09:48:24 +02:00
Beat Küng
1085f33f88
gps: remove the old driver files
2016-04-25 09:48:24 +02:00
Beat Küng
7ef718912a
drv_gps.h: cleanup the file, remove unneeded stuff
2016-04-25 09:48:24 +02:00
Beat Küng
1013ae7d49
gps: major restructuring & extension of ubx driver: use a submodule for gps drivers
...
The gps drivers are now in a platform-independent submodule because they
are used in QGroundControl as well
2016-04-25 09:48:24 +02:00
Beat Küng
b427f5c90d
mavlink_receiver.cpp: fix coding style
2016-04-25 09:48:24 +02:00
Beat Küng
5b684a77f4
mavlink_receiver.cpp: remove __BEGIN_DECLS, __END_DECLS
...
This is the wrong usage of the macros and not needed at this place
2016-04-25 09:48:24 +02:00
Beat Küng
5cf351f585
orb: add gps_inject_data message & publish from mavlink
2016-04-25 09:48:24 +02:00
Lorenz Meier
faa85a2eba
Battery: Add proper units
2016-04-25 09:36:28 +02:00
Lorenz Meier
388d29baec
MC pos control: Show normalized units properly
2016-04-25 09:35:58 +02:00
Lorenz Meier
9b71379ea6
FW pos control: Show normalized units properly
2016-04-25 09:35:41 +02:00
Lorenz Meier
aa6168963a
Land detectorr: Fix units, complete meta data for decent user representation
2016-04-25 09:35:23 +02:00
Lorenz Meier
3598d1e291
Fix typo in param meta
2016-04-25 08:44:51 +02:00
Lorenz Meier
c7df99030a
Commander: Limit data link loss params to save ranges
2016-04-25 08:44:51 +02:00
Lorenz Meier
dc635b460c
Update FIirmware param meta
2016-04-25 08:44:51 +02:00
Lorenz Meier
fd9978c805
Battery: Trigger RTL a little later
2016-04-25 08:44:51 +02:00
Lorenz Meier
163b5afc73
Navigator: Fix style
2016-04-25 08:44:51 +02:00
Lorenz Meier
35180e1d10
Hide OBC failsafe actions for normal users
2016-04-25 08:44:51 +02:00
Lorenz Meier
3003ed8d40
Make battery failsafe limits configurable
2016-04-25 08:44:51 +02:00
Lorenz Meier
5c70b44d0a
Navigator: Support finer granularity of RTL and failsafe actions
2016-04-25 08:44:51 +02:00
Lorenz Meier
55d18949bc
Commander: support finer granularity of data llink loss and RC loss actions
2016-04-25 08:44:51 +02:00
Leon
b781006e20
Increase sending of navstate and gpsfix to 2 Hz
2016-04-25 07:55:53 +02:00
Leon
5d114d3984
Small improvements and corrections
...
Added more SPort GPS Sensors
Fix code style
Adding DIY IDs
Moved navstate and gpsfix away from Temp1 and Temp2 to their own IDs
More consistent names
Fix codestyle
Rebase work off master frsky_telemetry driver
Fixed code-style error
forgot something
2016-04-25 07:55:49 +02:00
Julian Oes
a302e79bb6
param_shmem: be less chatty, printf cleanup
2016-04-24 20:03:10 +02:00
Lorenz Meier
a1e90f4aa7
Better loiter handling
2016-04-24 20:03:05 +02:00
Julian Oes
92afa7c258
mag_calibration: bugfix for device ID of mag
...
The device ID is defined as a uint32_t in the driver and topic but
stored as a int32_t param. It is therefore sufficient if the device ID
is not 0 in order to be valid.
2016-04-24 17:07:37 +02:00
Lorenz Meier
588133e85d
Commander: Only change flight mode immediately if GCS requested it
2016-04-24 12:10:23 +02:00
Lorenz Meier
2244ff167f
Navigator: execute on reposition commands
2016-04-24 11:54:20 +02:00