-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGaryCooper.h
47 lines (38 loc) · 1.23 KB
/
GaryCooper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
////////////////////////////////////////////////////
// Configuration file for the program
////////////////////////////////////////////////////
#ifndef GaryCooper_h
#define GaryCooper_h
////////////////////////////////////
// Config settings for Gary Cooper
// Universal constant
#define MILLIS_PER_SECOND (1000L)
//#define DEBUG_RAW_GPS
#define DEBUG_SUNCALC
#define DEBUG_DOOR_CONTROLLER
#define DEBUG_DOOR_MOTOR
#define DEBUG_LIGHT_CONTROLLER
#define DEBUG_COMMAND_PROCESSOR
//#define DEBUG_COMMAND_PROCESSOR_INTERFACE
#define DEBUG_SETTINGS
// Beep on door change?
#define COOPDOOR_CHANGE_BEEPER
// Beep to report errors?
#define BEEP_ON_ERROR
// The data version for tracking the settings,
// and the settings functions
#define GARYCOOPER_DATA_VERSION (2)
extern void loadSettings();
extern void saveSettings(bool _defaults = false);
// Important globals
extern CTelemetry g_telemetry;
extern CDoorController g_doorController;
extern CLightController g_lightController;
extern CBeepController g_beepController;
extern CSunCalc g_sunCalc;
extern CSaveController g_saveController;
// Utility functions
void debugPrintDoubleTime(double _t, bool _newline = true);
void reportError(telemetryErrorE _errorTag, bool _set);
void sendErrors();
#endif