17 Commits

Author SHA1 Message Date
Beat Küng
d846ad5dac sensors: move voting into sensors module
- voting is now at a central place instead of duplicated within the
  estimators
  -> this also means that estimators that did not do voting so far,
     now have voting, like ekf2
- estimators requiring more than that can still subscribe to the raw
  sensors
- allows sensors_combined to be 3 times smaller
  - reduces logger, memcpy (cache) & RAM overhead
- all modules requiring only 1 or 2 sensor values now automatically get
  the voted result
- this also adds voting to baro
2016-07-07 11:35:50 +02:00
Stefan
54677cd223 Update messages.cpp
spelling mistakes
2016-01-11 08:37:43 +01:00
Lorenz Meier
ca4982a6e8 HoTT: Fixed code style 2015-10-19 13:13:43 +02:00
Lorenz Meier
2b090d62c9 HoTT telemetry: Update to new sensors combined topic 2015-08-30 11:37:26 +02:00
Lorenz Meier
4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Lorenz Meier
e07731de7a Move esc_status to generated topics 2015-05-27 15:21:31 -07:00
Mark Charlebois
1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois
a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Pavel Kirienko
1bf4270e3e Update ORB topic 'esc_status' 2014-10-13 17:01:34 +04:00
Kynos
9bad828bc0 U-blox driver rework, step 2
Moved satellite info from vehicle_gps_position_s into a new uORB topic
satellite_info.
Renamed satellites_visible to satellites_used to reflect true content.
sdlog2 will log info for GPS satellites only for now.
2014-05-30 14:30:25 +02:00
Lorenz Meier
f10395e05a HoTT driver: Add timestamp, rename function-level variable from _esc to esc to match conventions 2014-05-13 08:38:07 +02:00
Lorenz Meier
e09c0dd8b9 Reduce RAM footprint of HoTT driver, fix publication to contain ESC data 2014-05-12 22:57:07 +02:00
Julian Oes
32c7aea2a6 Home position: use double for lat/lon and float for altitude, set home position to global position instead of GPS position once we have a fix 2013-12-27 11:07:45 +01:00
Lorenz Meier
fab110d21f Moved math library to library dir, improved sensor-level HIL, cleaned up geo / conversion libs 2013-08-21 18:13:01 +02:00
Simon Wilks
9aa25c5671 Remove unused code. 2013-07-13 22:18:52 +02:00
Simon Wilks
fa29694f0b Whitespace cleanup 2013-07-13 01:12:47 +02:00
Simon Wilks
b500cce31e Major refactor of HoTT drivers and finished sensor read implementation. 2013-07-13 01:08:06 +02:00