kamilritz
8b6d665a13
Avoid subtraction of two uint
5 years ago
kamilritz
f20726d47f
Expand auto-format coverage and tiny style changes
5 years ago
kritz
ed916c8006
Auto Formatting with clang-format-6.0 ( #727 )
...
* Add clang-format
* Auto-format AlphaFilter and RingBuffer
* Update to tab=8spaces
* Allow for 120 width
5 years ago
Daniel Agar
c5b2f59f57
PX4 style fixes (excluding EKF generated code)
7 years ago
Daniel Agar
d9c8af54bd
EKF add print_status() with memory usage
7 years ago
Daniel Agar
75d1ed894c
EKF simplify RingBuffer allocation check
7 years ago
Paul Riseborough
d785a19c0a
EKF: delay final allocation of observation buffers until required
7 years ago
Daniel Agar
ed9a394029
EKF RingBuffer avoid copying
7 years ago
ChristophTobler
e388e59f32
EKF: use uint64_t cast for XeY to avoid float casting of variables
...
The default type for XeY is float
7 years ago
Daniel Agar
99ba1c3745
EKF trivial code style cleanup
8 years ago
Paul Riseborough
fed4a9bc5a
EKF: add vertical position derivative output
...
Add calculation of a vertical position derivative to the output predictor. This will have degraded tracking relative to the EKF states, but the velocity will be closer to the first derivative of the position and reduce the effect inertial prediction errors on control loops that are operating in a pure velocity feedback mode.
Move calculation of IMU offset angular rate correction out of velocity accessor and into output predictor.
Provide separate accessor for vertical position derivative.
8 years ago
Paul Riseborough
9ddcba3ed0
EKF: remove un-used variable
8 years ago
Lucas De Marchi
2240eb6b4f
Move __STDC_FORMAT_MACROS to build system ( #174 )
...
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.
Instead of defining it everywhere it is used, let the PX4 build system
to deal with it.
9 years ago
Paul Riseborough
30917430e2
EKF: inline ring buffer functions used repeatedly
...
These functions get called 30 times each per output prediction cycle
9 years ago
Paul Riseborough
62c6d40f1f
EKF: Add methods to ring buffer to access specific indices
9 years ago
Paul Riseborough
a352c2f4e3
EKF: Fix posix build error
...
Memset cannot be used on a class like this. Setting the time elements to zero achieves the desired result.
9 years ago
Paul Riseborough
430d4b1cf8
EKF: ensure data in buffers is zero at startup
9 years ago
Roman
ce0ddc0207
-added comments
...
-removed unused print functions
-removed false _imu_time_last variable (correct is _time_last_imu)
9 years ago
bugobliterator
d79e12dfa1
EKF: fix code style
9 years ago
bugobliterator
8200ef4d17
EKF: allocate and unallocate buffer more robustly
9 years ago
Mark Charlebois
79bf35c4b3
Fixed printf of uint64_t
...
Must use PRIu64 to prevent compiler errors.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
9 years ago
Lorenz Meier
faf48242ed
EKF: Fix ringbuffer warnings
9 years ago
Lorenz Meier
2a6e48332d
EKF: Fix ringbuffer warnings
9 years ago
Roman
b52e38eb9d
fix
9 years ago
Roman
cd5db8f494
enhance ringbuffer
9 years ago
Roman Bapst
144aa9c461
added base class for data storage
9 years ago
Lorenz Meier
e5743d503c
Initial import
9 years ago