Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
defines.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MOTOR_DRIVER_FREQUENCY   (8000)
 
#define PWM_TIMER_FREQUENCY   (168000000)
 
#define MAX_OMEGA   70
 
#define MAX_POSSIBLE_OMEGA   (70)
 
#define START_BYTE   (0xA5)
 
#define MOTOR_PACKET_ID   (0x01)
 
#define ANGLE_PACKET_ID   (0x02)
 
#define COMPASS_PACKET_ID   (0x03)
 
#define JOYSTICK_ERROR_PACKET_ID   (0x04)
 
#define STATE_PACKET_ID   (0x05)
 
#define STOP_PACKET_ID   (0x5A)
 
#define _ENABLE_I2C_ERROR_DETECTION
 

Enumerations

enum  GameField { NONE, RED, BLUE }
 

Variables

GameField gCurrent_Field
 

Macro Definition Documentation

◆ _ENABLE_I2C_ERROR_DETECTION

#define _ENABLE_I2C_ERROR_DETECTION

◆ ANGLE_PACKET_ID

#define ANGLE_PACKET_ID   (0x02)

◆ COMPASS_PACKET_ID

#define COMPASS_PACKET_ID   (0x03)

◆ JOYSTICK_ERROR_PACKET_ID

#define JOYSTICK_ERROR_PACKET_ID   (0x04)

◆ MAX_OMEGA

#define MAX_OMEGA   70

◆ MAX_POSSIBLE_OMEGA

#define MAX_POSSIBLE_OMEGA   (70)

◆ MOTOR_DRIVER_FREQUENCY

#define MOTOR_DRIVER_FREQUENCY   (8000)

◆ MOTOR_PACKET_ID

#define MOTOR_PACKET_ID   (0x01)

◆ PWM_TIMER_FREQUENCY

#define PWM_TIMER_FREQUENCY   (168000000)

◆ START_BYTE

#define START_BYTE   (0xA5)

◆ STATE_PACKET_ID

#define STATE_PACKET_ID   (0x05)

◆ STOP_PACKET_ID

#define STOP_PACKET_ID   (0x5A)

Enumeration Type Documentation

◆ GameField

enum GameField
Enumerator
NONE 
RED 
BLUE 

Variable Documentation

◆ gCurrent_Field

GameField gCurrent_Field