Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
freewheel.cpp File Reference
#include "freewheel.h"
Include dependency graph for freewheel.cpp:

Macros

#define PI   (3.14159)
 
#define DISTANCE_RATIO(PPR, RADIUS)   (2.0*(PI)*(RADIUS)/((PPR)))
 

Functions

void Enc_HandleCount (struct Enc *enc)
 
float Enc_get_DeltaDist (struct Enc *enc)
 

Variables

int32_t gYCount = 0
 
int32_t gXCount = 0
 

Macro Definition Documentation

◆ DISTANCE_RATIO

#define DISTANCE_RATIO (   PPR,
  RADIUS 
)    (2.0*(PI)*(RADIUS)/((PPR)))

◆ PI

#define PI   (3.14159)

Function Documentation

◆ Enc_get_DeltaDist()

float Enc_get_DeltaDist ( struct Enc enc)

◆ Enc_HandleCount()

void Enc_HandleCount ( struct Enc enc)

Variable Documentation

◆ gXCount

int32_t gXCount = 0

◆ gYCount

int32_t gYCount = 0