1
1
#include " config.h"
2
2
#include < spdlog/spdlog.h>
3
- #if TESTING == 1
4
3
5
4
#include " TestingInterface.h"
6
5
@@ -21,14 +20,8 @@ void TestingInterface::initialize()
21
20
22
21
void TestingInterface::initializeOutputs ()
23
22
{
24
- #if USE_LOGGER == 1
25
23
SPDLOG_LOGGER_INFO (logger, " Initializing LOGGER..." );
26
24
sensorLogger.initialize ();
27
- #endif
28
- #if USE_RADIO == 1
29
- SPDLOG_LOGGER_INFO (logger, " Initializing RADIO..." );
30
- radio.initialize ();
31
- #endif
32
25
}
33
26
34
27
bool TestingInterface::updateInputs ()
@@ -40,7 +33,6 @@ bool TestingInterface::updateInputs()
40
33
41
34
bool TestingInterface::updateOutputs (std::shared_ptr<StateData> data)
42
35
{
43
- #if USE_LOGGER == 1
44
36
if (latestState->outOfData )
45
37
{
46
38
if (!sensorLogger.queueEmpty ())
@@ -53,26 +45,10 @@ bool TestingInterface::updateOutputs(std::shared_ptr<StateData> data)
53
45
}
54
46
55
47
sensorLogger.enqueueSensorData (*data);
56
- #endif
57
-
58
- #if USE_RADIO == 1
59
- radio.enqueueSensorData (*data);
60
- #endif
61
48
62
49
return true ;
63
50
}
64
51
65
- #if USE_GPIO == 1
66
- void TestingInterface::createNewGpioOutput (std::string name, int pinNbr)
67
- {
68
- return ; // don't do anything for now
69
- }
70
- void TestingInterface::createNewGpioPwmOutput (std::string name, int pinNbr, int safePosition, bool softpwm)
71
- {
72
- return ; // don't do anything for now
73
- }
74
- #endif
75
-
76
52
void TestingInterface::calibrateTelemetry ()
77
53
{
78
54
}
@@ -93,5 +69,3 @@ time_point TestingInterface::getCurrentTime()
93
69
return time_point (std::chrono::duration_cast<time_point::duration>(duration_ns (0 )));
94
70
}
95
71
}
96
-
97
- #endif
0 commit comments