Blackbox header tidy
This commit is contained in:
parent
f8b18a9a69
commit
f527455d34
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "blackbox.h"
|
||||
#include "blackbox_encoding.h"
|
||||
#include "blackbox_fielddefs.h"
|
||||
#include "blackbox_io.h"
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "platform.h"
|
||||
#include "build/build_config.h"
|
||||
#include "blackbox/blackbox_fielddefs.h"
|
||||
#include "common/time.h"
|
||||
#include "config/parameter_group.h"
|
||||
|
||||
|
@ -34,6 +33,14 @@ typedef enum BlackboxDevice {
|
|||
BLACKBOX_DEVICE_SERIAL = 3
|
||||
} BlackboxDevice_e;
|
||||
|
||||
typedef enum FlightLogEvent {
|
||||
FLIGHT_LOG_EVENT_SYNC_BEEP = 0,
|
||||
FLIGHT_LOG_EVENT_INFLIGHT_ADJUSTMENT = 13,
|
||||
FLIGHT_LOG_EVENT_LOGGING_RESUME = 14,
|
||||
FLIGHT_LOG_EVENT_FLIGHTMODE = 30, // Add new event type for flight mode status.
|
||||
FLIGHT_LOG_EVENT_LOG_END = 255
|
||||
} FlightLogEvent;
|
||||
|
||||
typedef struct blackboxConfig_s {
|
||||
uint16_t p_denom; // I-frame interval / P-frame interval
|
||||
uint8_t device;
|
||||
|
@ -43,7 +50,8 @@ typedef struct blackboxConfig_s {
|
|||
|
||||
PG_DECLARE(blackboxConfig_t, blackboxConfig);
|
||||
|
||||
void blackboxLogEvent(FlightLogEvent event, flightLogEventData_t *data);
|
||||
union flightLogEventData_u;
|
||||
void blackboxLogEvent(FlightLogEvent event, union flightLogEventData_u *data);
|
||||
|
||||
void blackboxInit(void);
|
||||
void blackboxUpdate(timeUs_t currentTimeUs);
|
||||
|
|
|
@ -106,14 +106,6 @@ typedef enum FlightLogFieldSign {
|
|||
FLIGHT_LOG_FIELD_SIGNED = 1
|
||||
} FlightLogFieldSign;
|
||||
|
||||
typedef enum FlightLogEvent {
|
||||
FLIGHT_LOG_EVENT_SYNC_BEEP = 0,
|
||||
FLIGHT_LOG_EVENT_INFLIGHT_ADJUSTMENT = 13,
|
||||
FLIGHT_LOG_EVENT_LOGGING_RESUME = 14,
|
||||
FLIGHT_LOG_EVENT_FLIGHTMODE = 30, // Add new event type for flight mode status.
|
||||
FLIGHT_LOG_EVENT_LOG_END = 255
|
||||
} FlightLogEvent;
|
||||
|
||||
typedef struct flightLogEvent_syncBeep_s {
|
||||
uint32_t time;
|
||||
} flightLogEvent_syncBeep_t;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "platform.h"
|
||||
|
||||
#include "blackbox/blackbox.h"
|
||||
#include "blackbox/blackbox_fielddefs.h"
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ extern "C" {
|
|||
#include "config/parameter_group_ids.h"
|
||||
|
||||
#include "blackbox/blackbox.h"
|
||||
#include "blackbox/blackbox_fielddefs.h"
|
||||
|
||||
#include "drivers/sensor.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue