1 #ifndef __PUZZLELINETRACER__ 2 #define __PUZZLELINETRACER__ 12 #define PUZZLE_POSITION_CURRENT 16 13 #define PUZZLE_POSITION_NEXT 16 14 #define PUZZLE_POSITION_DESTINATE 5 15 #define PUZZLE_POLAR_COODINATE 2 20 #define PUZZLE_LINE_LONG 1130 21 #define PUZZLE_LINE_NORMAL 770 22 #define PUZZLE_LINE_SHORT 500 29 void preparatePuzzle (
void ) ;
30 void puzzleLineTrace ( int8_t, int8_t, int8_t ) ;
39 int32_t traceDistance ;
40 int8_t currentDegree ;
42 int8_t rightMotorDeg ;
43 int8_t connectPosition ;
44 int8_t beforeConnectPosition ;
47 int32_t nextDistance ;
53 {
X,
X,
X,
X,
X,
X,
X,
X,
X,
X,
X,
X,
X,
X,
X, X },
54 {
X,
X, 0,
X,
X, 1,
X,
X,
X,
X, 2,
X,
X,
X,
X, X },
55 {
X, 0,
X, 1,
X, 2, 3,
X,
X,
X,
X,
X,
X,
X,
X, X },
56 {
X,
X, 0,
X, 1,
X, 2, 3,
X,
X,
X,
X,
X,
X,
X, X },
57 {
X,
X,
X, 0,
X,
X,
X, 1,
X,
X,
X, 2,
X,
X,
X, X },
58 {
X, 0, 1,
X,
X,
X,
X,
X, 2,
X, 3,
X,
X,
X,
X, X },
59 { 0,
X, 1, 2,
X,
X,
X,
X, 3, 4,
X,
X,
X,
X,
X, X },
60 {
X,
X,
X, 0, 1,
X,
X,
X,
X, 2,
X, 3,
X,
X,
X, X },
61 { 0,
X,
X,
X,
X, 1, 2,
X,
X,
X,
X,
X, 3, 4,
X, X },
62 { 0,
X,
X,
X,
X,
X, 1, 2,
X,
X,
X,
X,
X,
X, 3, 4 },
63 {
X, 0,
X,
X,
X, 1,
X,
X,
X,
X,
X,
X, 2,
X,
X, X },
64 {
X,
X,
X,
X, 0,
X,
X, 1,
X,
X,
X,
X,
X,
X,
X, 2 },
65 {
X,
X,
X,
X,
X,
X,
X,
X, 0,
X, 1,
X,
X, 2,
X, X },
66 { 0,
X,
X,
X,
X,
X,
X,
X, 1,
X,
X,
X, 2,
X, 3, X },
67 { 0,
X,
X,
X,
X,
X,
X,
X,
X, 1,
X,
X,
X, 2,
X, 3 },
68 {
X,
X,
X,
X,
X,
X,
X,
X,
X, 0,
X, 1,
X,
X, 2, X }
72 {
X, X }, {
X, X }, {
X, X }, {
X, X }, {
X, X }
#define PUZZLE_POSITION_NEXT
#define PUZZLE_LINE_NORMAL
#define PUZZLE_LINE_SHORT
#define PUZZLE_POLAR_COODINATE
#define PUZZLE_POSITION_CURRENT
#define PUZZLE_POSITION_DESTINATE