MCU
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
veh_vec< T > Struct Template Reference

generic data vector type that can be used with tire and / or anything to do with 4 corners of the car. More...

#include <Utility.h>

Collaboration diagram for veh_vec< T >:
Collaboration graph

Public Member Functions

 veh_vec ()=default
 
 veh_vec (T _FL, T _FR, T _RL, T _RR)
 
void copy_to_arr (T(&arr_out)[4])
 copy values to array in FL, FR, RL, RR order More...
 

Public Attributes

FL
 
FR
 
RL
 
RR
 

Detailed Description

template<typename T>
struct veh_vec< T >

generic data vector type that can be used with tire and / or anything to do with 4 corners of the car.

Definition at line 16 of file Utility.h.

Constructor & Destructor Documentation

◆ veh_vec() [1/2]

template<typename T >
veh_vec< T >::veh_vec ( )
default

◆ veh_vec() [2/2]

template<typename T >
veh_vec< T >::veh_vec ( _FL,
_FR,
_RL,
_RR 
)
inline

Definition at line 26 of file Utility.h.

27 {
28 FL = _FL;
29 FR = _FR;
30 RL = _RL;
31 RR = _RR;
32 }
T FL
Definition: Utility.h:19
T RL
Definition: Utility.h:21
T RR
Definition: Utility.h:22
T FR
Definition: Utility.h:20

Member Function Documentation

◆ copy_to_arr()

template<typename T >
void veh_vec< T >::copy_to_arr ( T(&)  arr_out[4])
inline

copy values to array in FL, FR, RL, RR order

Definition at line 35 of file Utility.h.

36 {
37 arr_out[0] = FL;
38 arr_out[1] = FR;
39 arr_out[2] = RL;
40 arr_out[3] = RR;
41 }

Member Data Documentation

◆ FL

template<typename T >
T veh_vec< T >::FL

Definition at line 19 of file Utility.h.

◆ FR

template<typename T >
T veh_vec< T >::FR

Definition at line 20 of file Utility.h.

◆ RL

template<typename T >
T veh_vec< T >::RL

Definition at line 21 of file Utility.h.

◆ RR

template<typename T >
T veh_vec< T >::RR

Definition at line 22 of file Utility.h.


The documentation for this struct was generated from the following file: