Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
joystick.h File Reference
#include "vec3.h"
#include "usart.h"
#include "queue_custom.h"
#include "FreeRTOS.h"
#include "task.h"
Include dependency graph for joystick.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JoyStick_Data
 
struct  JoyStick_Handle
 
struct  JoyStick_Command
 
class  JoyStick
 

Macros

#define B_X   (7)
 
#define B_Y   (6)
 
#define B_A   (5)
 
#define B_B   (4)
 
#define B_UP   (3)
 
#define B_DOWN   (2)
 
#define B_LB   (1)
 
#define B_RB   (0)
 
#define B_START   (7)
 
#define B_BACK   (6)
 
#define B_XBOX   (5)
 
#define B_LEFT   (4)
 
#define B_RIGHT   (3)
 
#define MANUAL_KEY   (B_LB)
 
#define AUTO_KEY   (B_A)
 
#define RESET_KEY   (B_RB)
 
#define SHAGAI_GRIP_KEY   (B_X)
 
#define THROW_SHAGAI_KEY   (B_Y)
 
#define ACTUATE_ARM_KEY   (B_B)
 
#define START_THROW_KEY   (B_START)
 
#define _BV(x)   (1 << x)
 

Enumerations

enum  Control_Mode { Control_Mode::MANUAL, Control_Mode::AUTO, Control_Mode::NONE }
 

Functions

void JoyStick_Handle_RxCplt ()
 

Macro Definition Documentation

◆ _BV

#define _BV (   x)    (1 << x)

◆ ACTUATE_ARM_KEY

#define ACTUATE_ARM_KEY   (B_B)

◆ AUTO_KEY

#define AUTO_KEY   (B_A)

◆ B_A

#define B_A   (5)

◆ B_B

#define B_B   (4)

◆ B_BACK

#define B_BACK   (6)

◆ B_DOWN

#define B_DOWN   (2)

◆ B_LB

#define B_LB   (1)

◆ B_LEFT

#define B_LEFT   (4)

◆ B_RB

#define B_RB   (0)

◆ B_RIGHT

#define B_RIGHT   (3)

◆ B_START

#define B_START   (7)

◆ B_UP

#define B_UP   (3)

◆ B_X

#define B_X   (7)

◆ B_XBOX

#define B_XBOX   (5)

◆ B_Y

#define B_Y   (6)

◆ MANUAL_KEY

#define MANUAL_KEY   (B_LB)

◆ RESET_KEY

#define RESET_KEY   (B_RB)

◆ SHAGAI_GRIP_KEY

#define SHAGAI_GRIP_KEY   (B_X)

◆ START_THROW_KEY

#define START_THROW_KEY   (B_START)

◆ THROW_SHAGAI_KEY

#define THROW_SHAGAI_KEY   (B_Y)

Enumeration Type Documentation

◆ Control_Mode

enum Control_Mode
strong
Enumerator
MANUAL 
AUTO 
NONE 

Function Documentation

◆ JoyStick_Handle_RxCplt()

void JoyStick_Handle_RxCplt ( )