-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeasure.ino
77 lines (76 loc) · 1.81 KB
/
measure.ino
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//void getGPSMeasurement(void)
//{
// uint8_t gps_error=10;
// volatile int gps_wtchdg=0;
// int nowtime=0;
//
///*#ifdef NEO6_GPS
// GPS.begin(9600);
// SetupUBLOX(void);
//#elif defined(TYCO)
// GPS.begin(4800);
//#elif defined(Soft_GPS)
// GPS.begin(9600);
//
//#endif
//*/
// gps_wtchdg = millis();
//// Serial.println(gps_wtchdg);
// DEBUG.print("[OBC] GPS read...");
// ////GPS.listen();
// GPS.begin(GPS_BAUD);
// while((gps_error !=0))// || (gps_wtchdg < 10000))
// {
//// Serial.print(".");
// gps_error=CheckGPS();
// //gps_wtchdg++;
// nowtime=millis();
// if(nowtime - gps_wtchdg >3000)
// {
// DEBUG.print("timeout");
// break;
// }
//
// // Serial.println(nowtime);
// }
// DEBUG.println("...end");
// gps_wtchdg = 0;
// if( GPS_Altitude > 1000)
// {
// is_climb = true;
// is_landing = false;
// }
// if( (GPS_Altitude < 500) && (is_climb))
// {
// is_landing = true;
// }
// if( (GPS_Altitude > 500) && (is_landing))
// {
// is_landing = false;
// }
//
// UDR0=0;
// USD_CSR0A &= !(1<<UDRE0);
// SICL.begin(SICL_BAUD);
//// DEBUG.begin(DEBUG_BAUD); // TODO: UNCOMMENT THIS FOR RELEASE
//}
//
//void getTemperatures(void)
//{
// DEBUG.println(F("[OBC] COLLECT SENSOR DATA"));
// //getGPSMeasurement();
//
// //ext_temp = get_external_temperature();
// //int_temp = getIntTemp();
//}
//
//void debugLOG(void)
//{
// DEBUG.print("time: ");DEBUG.println(GPS_time[GPS_valid]);
// DEBUG.print("latitude: ");DEBUG.println(GPS_lati[GPS_valid]);
// DEBUG.print("longitude: ");DEBUG.println(GPS_long[GPS_valid]);
// DEBUG.print("altitude: ");DEBUG.println(GPS_Altitude[GPS_valid]);
// DEBUG.print("external: ");DEBUG.println(ext_temp);
// DEBUG.print("internal: ");DEBUG.println(pcb_temp);
// DEBUG.print("radio: ");DEBUG.println(radio_temp);
//}