I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later

Dependencies:   BufferedSerial FatFileSystemCpp mbed

LTCApp.h

Committer:
JamieB
Date:
2022-02-10
Revision:
72:da2f1df6a50d
Parent:
71:7305a35cee58
Child:
73:89f799500055

File content as of revision 72:da2f1df6a50d:

#ifndef __LTCApp_h__
#define __LTCApp_h__

#include "mbed.h"
#include "LTCDecode.h"
#include "VIPSSerialProtocol.h"
#include "frameRates.h"
#include "BufferedSerial.h"
#include "FIZ_DISNEY.h"
#include "FIZ_digiPower.h"
#include "FIZDigiPowerActive.h"
#include "FIZCanon.h"
#include "FIZ_ArriCmotion.h"
#include "frameclock.h"
#include "FreeD.h"
#include <stdint.h>

extern volatile uint32_t VBOXTicks;
extern volatile bool ppsActive;

extern BufferedSerial pc;

extern frameRates detectedRate;

extern Timer TimeSinceLastFrame;
extern uint32_t TimeSinceLastFrameWrap;
extern DigitalOut led1;

extern void vipsBypassRx(char byte);

typedef struct UserSettings_s {
    int FIZmode;
    int SerialOutMode;
    int FreeDPort;
    int VipsUDPPort;
    int SettingsPort;
    char IPAddress[32];
    char Gateway[32];
    char Subnet[32];
    int FilterOrder;
    float FilterFreq;
    float FilterRate;
    bool FilterXY;
    bool FilterZ;
    bool FilterRoll;
    bool FilterPitch;
    bool FilterYaw;
    bool AutoHyperSmooth;
    bool FlexibleVIPSOut;
    float SerialTxDelayMS;
    float UDPTxDelayMS;
    float SerialTxDelayFrame;
    float UDPTxDelayFrame;
    float InterpolationOffset_uS;
    float InterpolationOffsetFrame;
    bool InvertRoll;
    bool InvertPitch;
    bool InvertYaw;
    int OffsetRoll;
    int OffsetPitch;
    int OffsetYaw;
    int bypassBaud;
    bool ForcePPF;
    bool HalfRate;
    float focus_scale;
    float focus_offset;
    float iris_scale;
    float iris_offset;
    float zoom_scale;
    float zoom_offset;
} UserSettings_t;

extern UserSettings_t UserSettings;

#endif