master board program  v. 2 - 2018
/home/krtko/robocup_2018/robocup_2018/jetson.h
Go to the documentation of this file.
1 #ifndef JETSON_H_
2 #define JETSON_H_
3 
4 #include "hal.h"
5 #include "ch.h"
6 #include "leds.h"
7 #include "lines.h"
8 #include "config.h"
9 
22 #define JETSON_SERIAL &SD6
23 
24 #define LOAD_JETSON_VALUES 1
25 #define SAVE_JETSON_VALUES 2
26 
27 
28 #define JETSON_MOVE_COMMAND 255
29 #define KICK_COMMAND 254
30 #define START_COMMAND 251
31 #define LINE_CALIBRATION_COMMAND 250
32 #define INIT_COMMAND 249
33 #define RESET_COMMAND 248
34 #define DRIBLER_COMMAND 247
35 #define LINE_DETECTED_COMMAND 246
36 #define STOP_COMMAND 245
37 #define START_ULTRASONIC_COMMAND 244
38 #define STOP_ULTRASONIC_COMMAND 243
39 #define LEFT_TRUE 242
40 #define LEFT_FALSE 241
41 #define RIGHT_TRUE 240
42 #define RIGHT_FALSE 239
43 #define LEFT_CLOSE 238
44 #define RIGHT_CLOSE 237
45 
46 #define START 3
47 #define STOP 5
48 #define START_STOP 6
49 #define DRIBLER_ON_OFF 4
50 #define KICK 2
51 
52 extern uint16_t ball_degree;
53 extern int16_t robot_speed;
54 extern int16_t robot_azimuth;
55 
65 msg_t send_jetson(msg_t command);
66 
77 msg_t get_jetson_values(void);
78 
87 void jetson_init(void);
88 
89 
93 #endif
msg_t send_jetson(msg_t command)
Send message to Jetson write thread.
Definition: jetson.c:22
uint16_t ball_degree
Definition: jetson.c:11
void jetson_init(void)
Init of all 3 Jetson processing threads:
Definition: jetson.c:199
int16_t robot_azimuth
Definition: jetson.c:13
msg_t get_jetson_values(void)
Send message to Jetson save thread which load movement values from jetson to main variables...
Definition: jetson.c:128
int16_t command
Definition: motor.c:9
int16_t robot_speed
Definition: jetson.c:12