APM:Libraries
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
imu_ring_buffer_t< element_type > Class Template Reference

#include <AP_NavEKF2_Buffer.h>

Collaboration diagram for imu_ring_buffer_t< element_type >:
[legend]

Classes

struct  element_t
 

Public Member Functions

bool init (uint32_t size)
 
void push_youngest_element (element_type element)
 
bool is_filled (void) const
 
element_type pop_oldest_element ()
 
void reset_history (element_type element)
 
void reset ()
 
element_type & operator[] (uint32_t index)
 
uint8_t get_oldest_index ()
 
uint8_t get_youngest_index ()
 
bool init (uint32_t size)
 
void push_youngest_element (element_type element)
 
bool is_filled (void) const
 
element_type pop_oldest_element ()
 
void reset_history (element_type element)
 
void reset ()
 
element_type & operator[] (uint32_t index)
 
uint8_t get_oldest_index ()
 
uint8_t get_youngest_index ()
 

Public Attributes

struct imu_ring_buffer_t::element_tbuffer
 

Private Attributes

uint8_t _size
 
uint8_t _oldest
 
uint8_t _youngest
 
bool _filled
 

Detailed Description

template<typename element_type>
class imu_ring_buffer_t< element_type >

Definition at line 118 of file AP_NavEKF2_Buffer.h.

Member Function Documentation

◆ get_oldest_index() [1/2]

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::get_oldest_index ( )
inline

Definition at line 185 of file AP_NavEKF2_Buffer.h.

◆ get_oldest_index() [2/2]

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::get_oldest_index ( )
inline

Definition at line 186 of file AP_NavEKF3_Buffer.h.

◆ get_youngest_index() [1/2]

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::get_youngest_index ( )
inline

Definition at line 190 of file AP_NavEKF2_Buffer.h.

◆ get_youngest_index() [2/2]

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::get_youngest_index ( )
inline

Definition at line 191 of file AP_NavEKF3_Buffer.h.

◆ init() [1/2]

template<typename element_type>
bool imu_ring_buffer_t< element_type >::init ( uint32_t  size)
inline

Definition at line 126 of file AP_NavEKF2_Buffer.h.

◆ init() [2/2]

template<typename element_type>
bool imu_ring_buffer_t< element_type >::init ( uint32_t  size)
inline

Definition at line 126 of file AP_NavEKF3_Buffer.h.

◆ is_filled() [1/2]

template<typename element_type>
bool imu_ring_buffer_t< element_type >::is_filled ( void  ) const
inline

Definition at line 155 of file AP_NavEKF2_Buffer.h.

◆ is_filled() [2/2]

template<typename element_type>
bool imu_ring_buffer_t< element_type >::is_filled ( void  ) const
inline

Definition at line 156 of file AP_NavEKF3_Buffer.h.

◆ operator[]() [1/2]

template<typename element_type>
element_type& imu_ring_buffer_t< element_type >::operator[] ( uint32_t  index)
inline

Definition at line 180 of file AP_NavEKF2_Buffer.h.

◆ operator[]() [2/2]

template<typename element_type>
element_type& imu_ring_buffer_t< element_type >::operator[] ( uint32_t  index)
inline

Definition at line 181 of file AP_NavEKF3_Buffer.h.

◆ pop_oldest_element() [1/2]

template<typename element_type>
element_type imu_ring_buffer_t< element_type >::pop_oldest_element ( )
inline

Definition at line 160 of file AP_NavEKF2_Buffer.h.

◆ pop_oldest_element() [2/2]

template<typename element_type>
element_type imu_ring_buffer_t< element_type >::pop_oldest_element ( )
inline

Definition at line 161 of file AP_NavEKF3_Buffer.h.

◆ push_youngest_element() [1/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::push_youngest_element ( element_type  element)
inline

Definition at line 143 of file AP_NavEKF2_Buffer.h.

◆ push_youngest_element() [2/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::push_youngest_element ( element_type  element)
inline

Definition at line 143 of file AP_NavEKF3_Buffer.h.

◆ reset() [1/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::reset ( )
inline

Definition at line 173 of file AP_NavEKF2_Buffer.h.

◆ reset() [2/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::reset ( )
inline

Definition at line 174 of file AP_NavEKF3_Buffer.h.

◆ reset_history() [1/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::reset_history ( element_type  element)
inline

Definition at line 166 of file AP_NavEKF2_Buffer.h.

◆ reset_history() [2/2]

template<typename element_type>
void imu_ring_buffer_t< element_type >::reset_history ( element_type  element)
inline

Definition at line 167 of file AP_NavEKF3_Buffer.h.

Member Data Documentation

◆ _filled

template<typename element_type>
bool imu_ring_buffer_t< element_type >::_filled
private

Definition at line 195 of file AP_NavEKF2_Buffer.h.

◆ _oldest

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::_oldest
private

Definition at line 194 of file AP_NavEKF2_Buffer.h.

◆ _size

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::_size
private

Definition at line 194 of file AP_NavEKF2_Buffer.h.

◆ _youngest

template<typename element_type>
uint8_t imu_ring_buffer_t< element_type >::_youngest
private

Definition at line 194 of file AP_NavEKF2_Buffer.h.

◆ buffer

template<typename element_type>
struct imu_ring_buffer_t::element_t * imu_ring_buffer_t< element_type >::buffer

The documentation for this class was generated from the following files: