PiImageStreamer
Loading...
Searching...
No Matches
RobotCfg.h
Go to the documentation of this file.
1
29#ifndef ROBOTCFG_H_
30#define ROBOTCFG_H_
31
35#define YAHBOOM_TANK
36
40#ifdef ALPHABOT
41#define AIN1 (12)
42#define AIN2 (13)
43#define ENA (6)
44#define ENB (26)
45#define IN3 (20)
46#define IN4 (21)
47#define DL (16)
48#define DR (19)
49
50#endif
51
55#ifdef ALPHABOT2
56#define AIN1 (12)
57#define AIN2 (13)
58#define ENA (6)
59#define ENB (26)
60#define BIN1 (20)
61#define BIN2 (21)
62#define DL (16)
63#define DR (19)
64#define BUZZER (4)
65#define IOCLK (25)
66#define ADDR (24)
67#define DOUT (23)
68#define CHIPSEL (5)
69#endif
70
71#ifdef FREENOVE
75#define PCADEVICE_ADDR (0x40)
76
80#define LFMFCHANNEL (0x00)
81#define LFMRCHANNEL (0x01)
82
83#define LRMFCHANNEL (0x03)
84#define LRMRCHANNEL (0x02)
85
86#define RFMFCHANNEL (0x04)
87#define RFMRCHANNEL (0x05)
88
89#define RRMFCHANNEL (0x06)
90#define RRMRCHANNEL (0x07)
91
92#define BUZZER_GPIO_PIN (17)
93#define DS_ECHO (22)
94#define DS_TRIG (27)
95
96#define LEFT_LINE_SENSOR_GPIO_PIN (14)
97#define CENTER_LINE_SENSOR_GPIO_PIN (15)
98#define RIGHT_LINE_SENSOR_GPIO_PIN (23)
99#endif
100
107#ifdef YAHBOOM_TANK
108#define AIN1 (21)
109#define AIN2 (20)
110#define ENA (16)
111#define ENB (13)
112#define BIN1 (26)
113#define BIN2 (19)
114
115#define LEFT_TRACK_IN_PIN (3)
116#define LEFT_CENTER_TRACK_IN_PIN (5)
117#define RIGHT_CENTER_TRACK_IN_PIN (4)
118#define RIGHT_TRACK_IN_PIN (18)
119
120#define LED_R (22)
121#define LED_G (27)
122#define LED_B (24)
123
124#define DL (16) // TODO
125#define DR (19) // TODO
126#define BUZZER_GPIO_PIN (8)
127#define DS_ECHO (0)
128#define DS_TRIG (1)
129#define IOCLK (25) //TODO
130#define ADDR (24) // TODO
131#define DOUT (23) // TODO
132#define CHIPSEL (5) // TODO
133
134#define CAMERA_AZMITH_PIN (11)
135#define CAMERA_ELEVATION_PIN (9)
136#define DISTANCE_SENSOR_AZMITH_PIN (23)
137
138
139#endif
140
141
142
143#endif /* ROBOTCFG_H_ */