22 Commits

Author SHA1 Message Date
Beat Küng
b4ecc5a8d9 sensor_combined cleanup: remove many unneeded fields
Decreases the message size from 780 to 280 bytes.
In particular, all modules using sensor_combined must use the integral now.
The sensor value can easily be reconstructed by dividing with dt.

Voters now need to be moved into sensors module, because error count and
priority is removed from the topic.

Any module that requires additional data from a sensor can subscribe to
the raw sensor topics.

At two places, values are set to zero instead of subscribing to the raw
sensors (with the assumption that no one reads them):
- mavlink mavlink_highres_imu_t::abs_pressure
- sdlog2: sensor temperatures
2016-07-07 11:35:50 +02:00
James Goppert
09ddc24801 Added agl smoothing to LPE. (#4976) 2016-07-05 16:54:08 -04:00
James Goppert
cb3120764a Made LPE var pub threshold a parameter. (#4959) 2016-07-01 13:27:29 -04:00
James Goppert
00dfc99e08 LPE Variance Dependent Publication (#4914)
* Use variance to control publishing for LPE.

* Don't stop publishing if we have gps/ baro.

* LPE tuning and cleanup.

* Added bias saturation to LPE.

* Added vector enabled low pass filter block.

* Added rk4 integration and pub lowpass to LPE.

* Fix std::abs issue on mac/ reset lowpass on state reset.

* Don't estimate gyro bias when rotating at high speed  att_est_q.

* Lowered low pass on position to 5 Hz for LPE.

* Streamline state space update for LPE.

* Added health flags to est2 log.

* Revert to old tuning, more conservative, less faults.

* Formatting.

* Fix for fault message on LPE.

* Added subscription throttling to LPE.

* Formatting.
2016-07-01 11:43:09 -04:00
James Goppert
2a26611cf5 Make LPE sonar reading more robust. (#4806) 2016-06-15 12:37:52 -04:00
James Goppert
97e6a57501 Add more GPS checks for LPE (#4750)
* Added more GPS checks for LPE.

* Add logic to force GPS alt init.
2016-06-06 19:40:41 -05:00
James Goppert
5ec7de3a5a Make LPE est always log. (#4749)
This is a trivial change so I'm going to merge to help address edge cases in users logs.
2016-06-06 14:12:18 -05:00
Lorenz Meier
47d2cb8134 LPE: Fix stack smashing 2016-05-21 14:10:12 +02:00
James Goppert
0bfe3a4403 Updated lpe for separate sensor source files, also made more quiet. 2016-04-14 14:32:22 -04:00
Julian Oes
bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
James Goppert
bcba1fb27e Enabled gps delay for lpe based on x hist. 2016-03-17 11:27:13 -04:00
MaEtUgR
4f29c7c4db switch the modules implementing the block structure to px4_poll such that in posix_sitl simulation the poll works as expected, blocks the module and doesn't overload the CPU 2016-03-09 09:38:32 +01:00
James Goppert
613ec40d86 LPE: comment out gps delay handling, too much memory required. 2016-03-08 11:48:20 -05:00
James Goppert
d37ddb6102 Work on LPE GPS delay. 2016-03-08 09:38:31 -05:00
James Goppert
ac66050cd6 LPE tuning for GPS delay in sim. 2016-03-08 08:56:33 -05:00
James Goppert
12489654ea GPS delay compensation for LPE. 2016-03-08 08:23:02 -05:00
James Goppert
c677d446d3 LPE SITL script updates. 2016-03-08 05:07:27 -05:00
James Goppert
baed2c0255 Updated lpe. 2016-03-08 03:47:12 -05:00
Andreas Antener
c706c30e83 fill pressure altitude in global position from estimators 2015-11-24 14:04:33 +01:00
jgoppert
27df787bff Separated matrix lib into own repo. 2015-11-05 20:27:48 -05:00
jgoppert
1e7da5064f Fixed LPE bug for accel bias estimation. 2015-10-26 15:59:36 -04:00
jgoppert
0106be3e89 Added local position estimator. 2015-10-24 20:34:33 +02:00