CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Camera/LogStructure.h
Views: 1798
1
#pragma once
2
3
#include <AP_Logger/LogStructure.h>
4
#include "AP_Camera_config.h"
5
6
#define LOG_IDS_FROM_CAMERA \
7
LOG_CAMERA_MSG, \
8
LOG_TRIGGER_MSG
9
10
// @LoggerMessage: CAM,TRIG
11
// @Description: Camera shutter information
12
// @Field: TimeUS: Time since system startup
13
// @Field: I: Instance number
14
// @Field: Img: Image number
15
// @Field: GPSTime: milliseconds since start of GPS week
16
// @Field: GPSWeek: weeks since 5 Jan 1980
17
// @Field: Lat: current latitude
18
// @Field: Lng: current longitude
19
// @Field: Alt: current altitude
20
// @Field: RelAlt: current altitude relative to home
21
// @Field: GPSAlt: altitude as reported by GPS
22
// @Field: R: current vehicle roll
23
// @Field: P: current vehicle pitch
24
// @Field: Y: current vehicle yaw
25
struct PACKED log_Camera {
26
LOG_PACKET_HEADER;
27
uint64_t time_us;
28
uint8_t instance;
29
uint16_t image_number;
30
uint32_t gps_time;
31
uint16_t gps_week;
32
int32_t latitude;
33
int32_t longitude;
34
int32_t altitude;
35
int32_t altitude_rel;
36
int32_t altitude_gps;
37
int16_t roll;
38
int16_t pitch;
39
uint16_t yaw;
40
};
41
42
#if AP_CAMERA_ENABLED
43
#define LOG_STRUCTURE_FROM_CAMERA \
44
{ LOG_CAMERA_MSG, sizeof(log_Camera), \
45
"CAM", "QBHIHLLeeeccC","TimeUS,I,Img,GPSTime,GPSWeek,Lat,Lng,Alt,RelAlt,GPSAlt,R,P,Y", "s#---DUmmmddd", "F----GGBBBBBB" }, \
46
{ LOG_TRIGGER_MSG, sizeof(log_Camera), \
47
"TRIG", "QBHIHLLeeeccC","TimeUS,I,Img,GPSTime,GPSWeek,Lat,Lng,Alt,RelAlt,GPSAlt,R,P,Y", "s#---DUmmmddd", "F----GGBBBBBB" },
48
#else
49
#define LOG_STRUCTURE_FROM_CAMERA
50
#endif
51
52