Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
Robo_States Class Reference

#include <robo_states.h>

Collaboration diagram for Robo_States:

Public Member Functions

 Robo_States (State_Vars *sv, Robo_States *next)
 
 Robo_States (Robo_States &&)=default
 
 Robo_States (const Robo_States &)=default
 
Robo_Statesoperator= (Robo_States &&)=default
 
Robo_Statesoperator= (const Robo_States &)=default
 
 ~Robo_States ()
 
float calc_RoboVelocity (Vec3< float > state, uint32_t dt_millis)
 
float calc_AngleOfAttack (Vec3< float > state, float v, uint32_t dt_millis)
 
Vec2< float > calc_Velocity (Vec3< float > state, Vec3< float > vel_from_base, uint32_t dt_millis)
 
bool nextStateReached (Vec3< float > state, uint8_t bounds)
 
Robo_Statesget_NextState ()
 
Vec2< float > get_Centre ()
 
Field get_ID ()
 
State_Varsget_State ()
 
void set_State (Robo_States *robo)
 
float get_AngOffset ()
 

Private Member Functions

Vec4< float > cubicSpline (Vec2< float > curr, Vec2< float > nex, Vec2< float > nexnex)
 
float quadTheta (Vec3< float > state, float v, uint32_t dt_millis)
 
float linearTheta (Vec3< float > state, float v, uint32_t dt_millis)
 

Private Attributes

State_Varssv_
 
Robo_Statesnext_state_
 
float ramped_
 

Constructor & Destructor Documentation

◆ Robo_States() [1/3]

Robo_States::Robo_States ( State_Vars sv,
Robo_States next 
)

◆ Robo_States() [2/3]

Robo_States::Robo_States ( Robo_States &&  )
default

◆ Robo_States() [3/3]

Robo_States::Robo_States ( const Robo_States )
default

◆ ~Robo_States()

Robo_States::~Robo_States ( )
inline

Member Function Documentation

◆ calc_AngleOfAttack()

float Robo_States::calc_AngleOfAttack ( Vec3< float >  state,
float  v,
uint32_t  dt_millis 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_RoboVelocity()

float Robo_States::calc_RoboVelocity ( Vec3< float >  state,
uint32_t  dt_millis 
)
Here is the caller graph for this function:

◆ calc_Velocity()

Vec2< float > Robo_States::calc_Velocity ( Vec3< float >  state,
Vec3< float >  vel_from_base,
uint32_t  dt_millis 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cubicSpline()

Vec4<float> Robo_States::cubicSpline ( Vec2< float >  curr,
Vec2< float >  nex,
Vec2< float >  nexnex 
)
private

◆ get_AngOffset()

float Robo_States::get_AngOffset ( )
inline

◆ get_Centre()

Vec2<float> Robo_States::get_Centre ( )
inline
Here is the caller graph for this function:

◆ get_ID()

Field Robo_States::get_ID ( )
inline
Here is the caller graph for this function:

◆ get_NextState()

Robo_States* Robo_States::get_NextState ( )
inline
Here is the caller graph for this function:

◆ get_State()

State_Vars* Robo_States::get_State ( )
inline
Here is the caller graph for this function:

◆ linearTheta()

float Robo_States::linearTheta ( Vec3< float >  state,
float  v,
uint32_t  dt_millis 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nextStateReached()

bool Robo_States::nextStateReached ( Vec3< float >  state,
uint8_t  bounds 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

Robo_States& Robo_States::operator= ( Robo_States &&  )
default

◆ operator=() [2/2]

Robo_States& Robo_States::operator= ( const Robo_States )
default

◆ quadTheta()

float Robo_States::quadTheta ( Vec3< float >  state,
float  v,
uint32_t  dt_millis 
)
private
Here is the call graph for this function:

◆ set_State()

void Robo_States::set_State ( Robo_States robo)
inline
Here is the call graph for this function:

Member Data Documentation

◆ next_state_

Robo_States* Robo_States::next_state_
private

◆ ramped_

float Robo_States::ramped_
private

◆ sv_

State_Vars* Robo_States::sv_
private

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