|
|
|
|
@ -153,8 +153,8 @@ char src_addr[5] = "";
|
|
|
|
|
char dest_addr[5] = "APCSS";
|
|
|
|
|
float voltage_min[9], current_min[9], voltage_max[9], current_max[9], sensor_max[17], sensor_min[17], other_max[3], other_min[3];
|
|
|
|
|
|
|
|
|
|
bool get_payload_serial(bool debug_camera);
|
|
|
|
|
bool finished = false;
|
|
|
|
|
int get_payload_serial(bool debug_camera);
|
|
|
|
|
int finished = FALSE;
|
|
|
|
|
|
|
|
|
|
//char buffer2[100001];
|
|
|
|
|
char buffer2[200];
|
|
|
|
|
@ -166,9 +166,9 @@ char start_flag[] = "START_FLAG";
|
|
|
|
|
char end_flag[] = "END_FLAG";
|
|
|
|
|
|
|
|
|
|
int flag_count = 0;
|
|
|
|
|
int start_flag_detected = false;
|
|
|
|
|
int start_flag_complete = false;
|
|
|
|
|
int end_flag_detected = false;
|
|
|
|
|
int start_flag_detected = FALSE;
|
|
|
|
|
int start_flag_complete = FALSE;
|
|
|
|
|
int end_flag_detected = FALSE;
|
|
|
|
|
int jpeg_start = 0;
|
|
|
|
|
#define CAMERA_TIMEOUT 10000 // 20000 // Camera timeout in milli seconds
|
|
|
|
|
|
|
|
|
|
|