-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalibration.h
37 lines (29 loc) · 914 Bytes
/
calibration.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
#ifndef CALIBRATION_H_
#define CALIBRATION_H_
//Fichier contenant toutes les constantes qui servent a calibrer l'analyse d'image et les controleurs P/PI de navigation
//detection de pic rouge
#define RED_SLOPE_SHARPNESS 3
//detection de feu rouge
#define RED_MEAN_THRESHOLD 12
#define RED_PEAK_TRIGGER 3
#define RED_PEAK_WIDTH_THRESHOLD 70
#define RED_STD_THRESHOLD_LOW 1
#define RED_STD_THRESHOLD_HIGH 120
//detection de feu vert
#define GREEN_MEAN_THRESHOLD 50
//detection de jour/nuit
#define NIGHT_THRESHOLD 14
#define NIGHT_TRIGGER_THRESHOLD 40
#define STEP_DAY 1
#define STEP_NIGHT 1
//Capteurs de proximite
#define PROX_COEFF_17DEG 7
#define PROX_COEFF_49DEG 1
#define PROX_KP 1
//Alignement feu rouge
#define ROTATION_KP 0.1f
#define DISTANCE_FILTER_THRESHOLD 70
#define DISTANCE_KP 3
#define DISTANCE_KI 0.05f
#define DISTANCE_KD 4
#endif /* CALIBRATION_H_ */