main/calibration.c

changeset 1
ad2c8b13eb88
parent 0
b74b0e4902c3
child 54
7b134c27fadb
equal deleted inserted replaced
0:b74b0e4902c3 1:ad2c8b13eb88
7 7
8 8
9 static const char *TAG = "calibration"; 9 static const char *TAG = "calibration";
10 10
11 11
12 extern uint16_t tp_xleft; 12 extern uint16_t tp_xleft; ///< Testpoint X left
13 extern uint16_t tp_xright; 13 extern uint16_t tp_xright; ///< Testpoint X right
14 extern uint16_t tp_ytop; 14 extern uint16_t tp_ytop; ///< Testpoint Y top
15 extern uint16_t tp_ybottom; 15 extern uint16_t tp_ybottom; ///< Testpoint Y bottom
16 16
17 17
18 // Distance of the testpoints from the corders. 18 // Distance of the testpoints from the corders.
19 #define CAL_DISTANCE 15 19 #define CAL_DISTANCE 15 ///< Testpoint size
20 20
21 21
22 int TS_set_calibration(int xleft, int xright, int ytop, int ybottom) 22 int TS_set_calibration(int xleft, int xright, int ytop, int ybottom)
23 { 23 {
24 if ((xleft > xright) || (ybottom > ytop)) { 24 if ((xleft > xright) || (ybottom > ytop)) {

mercurial