-
Notifications
You must be signed in to change notification settings - Fork 0
/
debuging.h
44 lines (31 loc) · 968 Bytes
/
debuging.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
#ifdef debug
//______________________________________________________________________________________
void debug_print() {
Serial.println(" ");
Serial.print("Status : ");
Serial.println(ST);
Serial.print("SAT Fix : ");
Serial.println(fix_type);
Serial.print("arm : ");
Serial.println(arm);
Serial.print("FS : ");
Serial.println(failsafe);
Serial.print("base Mode : ");
Serial.println(base_mode);
Serial.print("System Status : ");
Serial.println(system_status);
Serial.print("Battery : ");
Serial.println(vbat);
Serial.print("dist to home : ");
Serial.println(distanceToHome);
Serial.print("GPS : ");
Serial.print(gps_lon, 6);
Serial.print(" ");
Serial.println(gps_lat, 6);
Serial.print("GPS Home : ");
Serial.print(gps_home_lon, 6);
Serial.print(" ");
Serial.print(gps_home_lat, 6);
Serial.println(" ");
}
#endif