|
|
|
@ -715,6 +715,7 @@ static void Log_Write_PID(uint8_t pid_id, int32_t error, int32_t p, int32_t i, i
@@ -715,6 +715,7 @@ static void Log_Write_PID(uint8_t pid_id, int32_t error, int32_t p, int32_t i, i
|
|
|
|
|
struct PACKED log_Camera { |
|
|
|
|
LOG_PACKET_HEADER; |
|
|
|
|
uint32_t gps_time; |
|
|
|
|
uint16_t gps_week; |
|
|
|
|
int32_t latitude; |
|
|
|
|
int32_t longitude; |
|
|
|
|
int32_t altitude; |
|
|
|
@ -729,7 +730,8 @@ static void Log_Write_Camera()
@@ -729,7 +730,8 @@ static void Log_Write_Camera()
|
|
|
|
|
#if CAMERA == ENABLED |
|
|
|
|
struct log_Camera pkt = { |
|
|
|
|
LOG_PACKET_HEADER_INIT(LOG_CAMERA_MSG), |
|
|
|
|
gps_time : g_gps->time, |
|
|
|
|
gps_time : g_gps->time_week_ms, |
|
|
|
|
gps_week : g_gps->time_week, |
|
|
|
|
latitude : current_loc.lat, |
|
|
|
|
longitude : current_loc.lng, |
|
|
|
|
altitude : current_loc.alt, |
|
|
|
@ -818,7 +820,7 @@ static const struct LogStructure log_structure[] PROGMEM = {
@@ -818,7 +820,7 @@ static const struct LogStructure log_structure[] PROGMEM = {
|
|
|
|
|
{ LOG_PID_MSG, sizeof(log_PID), |
|
|
|
|
"PID", "Biiiiif", "Id,Error,P,I,D,Out,Gain" }, |
|
|
|
|
{ LOG_CAMERA_MSG, sizeof(log_Camera), |
|
|
|
|
"CAM", "ILLeccC", "GPSTime,Lat,Lng,Alt,Roll,Pitch,Yaw" }, |
|
|
|
|
"CAM", "IHLLeccC", "GPSTime,GPSWeek,Lat,Lng,Alt,Roll,Pitch,Yaw" }, |
|
|
|
|
{ LOG_ERROR_MSG, sizeof(log_Error), |
|
|
|
|
"ERR", "BB", "Subsys,ECode" }, |
|
|
|
|
}; |
|
|
|
|