forked from andras-adam/zumo-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vasilydavydov.h
57 lines (51 loc) · 1.44 KB
/
vasilydavydov.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include <project.h>
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
#include "Motor.h"
#include "Ultra.h"
#include "Nunchuk.h"
#include "Reflectance.h"
#include "Gyro.h"
#include "Accel_magnet.h"
#include "LSM303D.h"
#include "IR.h"
#include "Beep.h"
#include "mqtt_sender.h"
#include <time.h>
#include <sys/time.h>
#include "serial1.h"
#include <unistd.h>
#include <stdlib.h>
//function declarations:
void shut(void);
void launch_system(bool motor, bool IR, bool reflectance, bool ultrasonic);
int getRefValues (struct sensors_ *sensors, int SL3, int SL2, int SL1, int SR1, int SR2, int SR3);
void line_follower(struct sensors_ *sensors);
void line_follower_bonus (struct sensors_ *sensors, TickType_t *launch);
void obstacle();
void tank_turn_right(uint8 speed,uint32 delay);
void tank_turn_left(uint8 speed,uint32 delay);
void assignment_week3_1(void);
void assignment_week3_2 (void);
void assignment_week3_3 (void);
void assignment_week4_2 (void);
void assignment_week4_3(void);
void assignment_week5_1(void);
void assignment_week5_2(void);
void assignment_week5_3(void);
void project_line(void);
void project_sumo(void);
void project_maze(void);
/* [] END OF FILE */