Skip to content

Commit d83520c

Browse files
committed
remove some unused stuff
1 parent 8343047 commit d83520c

File tree

4 files changed

+2
-25
lines changed

4 files changed

+2
-25
lines changed

Telemetry-Main/CANInterface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ class MockCAN : public ICAN {
108108
}
109109
};
110110

111-
#endif // CAN_INTERFACE_HPP
111+
#endif // CAN_INTERFACE_HPP

Telemetry-Main/CANProtocol.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,4 @@ struct VDM_YAW_RATE_t {
233233
int16_t Z; // bits 39-54
234234
};
235235

236-
#endif // CANPROTOCOL_HPP
236+
#endif // CANPROTOCOL_HPP

Telemetry-Main/VehicleStateManager.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,9 @@ void VehicleStateManager::update() {
2727
readSensorValues();
2828
}
2929

30-
vector<float> brake_f_acc{10};
31-
vector<float> brake_r_acc{10};
32-
3330
void VehicleStateManager::readSensorValues() {
3431
_vehicleState.steering_sensor = _steering_sensor.read() * 3.3f;
3532

36-
// for (int i = 0; i < 10; i++) {
37-
// brake_f_acc[i] = _brake_sensor_f.read() * 3.3f;
38-
// brake_r_acc[i] = _brake_sensor_r.read() * 3.3f;
39-
// }
40-
//
41-
// _vehicleState.brake_sensor_f = std::accumulate(brake_f_acc.begin(), brake_f_acc.end(), 0.0);
42-
// _vehicleState.brake_sensor_r = std::accumulate(brake_r_acc.begin(), brake_r_acc.end(), 0.0);
43-
4433
_vehicleState.brake_sensor_f =_brake_sensor_f.read() * 3.3f;
4534
_vehicleState.brake_sensor_r =_brake_sensor_r.read() * 3.3f;
4635
}

Telemetry-Main/VehicleStateManager.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@
77
#include "CANInterface.hpp"
88
#include "mbed.h"
99

10-
#if defined(__linux__)
11-
#include <byteswap.h>
12-
#define bswap_16(x) bswap_16(x)
13-
#define bswap_32(x) bswap_32(x)
14-
#define bswap_64(x) bswap_64(x)
15-
#elif defined(__APPLE__)
16-
#include <libkern/OSByteOrder.h>
17-
#define bswap_16(x) OSSwapInt16(x)
18-
#define bswap_32(x) OSSwapInt32(x)
19-
#define bswap_64(x) OSSwapInt64(x)
20-
#endif
21-
2210
struct VehicleState {
2311
// ---- FROM CAN BUS ----
2412
// ACC

0 commit comments

Comments
 (0)