Khangai Robot Play - Naive
01
THe naive play of the Khangai Robot
bridge.h
Go to the documentation of this file.
1
/*
2
* bridge.h
3
*
4
* Created : 4/3/2019
5
* Author : n-is
6
* email : 073bex422.nischal@pcampus.edu.np
7
*/
8
9
#ifndef _BRIDGE_H_
10
#define _BRIDGE_H_
11
12
#include "
moore.h
"
13
14
//* According to the drawn state diagram, we need 9 states and there are
15
//* 2 possible inputs
16
const
size_t
gN_States
= 9;
17
const
size_t
gN_Inputs
= 2;
18
19
extern
Moore_Machine<gN_States, gN_Inputs>
gBridge_Machine
;
20
21
//* The following global variable(s) are modified by the state machine
22
extern
float
gLast_YEncoderValue
;
23
24
#endif // !_BRIDGE_H_
gBridge_Machine
Moore_Machine< gN_States, gN_Inputs > gBridge_Machine
gN_Inputs
const size_t gN_Inputs
Definition:
bridge.h:17
moore.h
gLast_YEncoderValue
float gLast_YEncoderValue
Definition:
position_sensor.cpp:26
Moore_Machine
Definition:
moore.h:8
gN_States
const size_t gN_States
Definition:
bridge.h:16
Core
Inc
parts
sensors
bridge.h
Generated by
1.8.15