Skip to content

Commit a686bca

Browse files
committed
fix: fix vendordep merge conflicts
Signed-off-by: Jonah Snider <jonah@jonahsnider.com>
1 parent 98c7777 commit a686bca

1 file changed

Lines changed: 10 additions & 22 deletions

File tree

lib/src/main/java/dev/doglog/internal/extras/ExtrasLogger.java

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,49 +79,37 @@ private void log() {
7979
}
8080

8181
private void logSystem(long now) {
82-
logger.log(now, "SystemStats/FPGAVersion", HALUtil.getFPGAVersion());
83-
logger.log(now, "SystemStats/FPGARevision", HALUtil.getFPGARevision());
8482
logger.log(now, "SystemStats/SerialNumber", HALUtil.getSerialNumber());
8583
logger.log(now, "SystemStats/Comments", HALUtil.getComments());
8684
logger.log(now, "SystemStats/TeamNumber", HALUtil.getTeamNumber());
87-
logger.log(now, "SystemStats/FPGAButton", HALUtil.getFPGAButton());
8885
logger.log(now, "SystemStats/SystemActive", HAL.getSystemActive());
8986
logger.log(now, "SystemStats/BrownedOut", HAL.getBrownedOut());
9087
logger.log(now, "SystemStats/RSLState", HAL.getRSLState());
9188
logger.log(now, "SystemStats/SystemTimeValid", HAL.getSystemTimeValid());
9289

9390
logger.log(now, "SystemStats/BatteryVoltage", PowerJNI.getVinVoltage(), VOLTS_UNIT_STRING);
94-
logger.log(now, "SystemStats/BatteryCurrent", PowerJNI.getVinCurrent(), AMPS_UNIT_STRING);
9591

9692
logger.log(now, "SystemStats/3v3Rail/Voltage", PowerJNI.getUserVoltage3V3(), VOLTS_UNIT_STRING);
9793
logger.log(now, "SystemStats/3v3Rail/Current", PowerJNI.getUserCurrent3V3(), AMPS_UNIT_STRING);
9894
logger.log(now, "SystemStats/3v3Rail/Active", PowerJNI.getUserActive3V3());
9995
logger.log(now, "SystemStats/3v3Rail/CurrentFaults", PowerJNI.getUserCurrentFaults3V3());
10096

101-
logger.log(now, "SystemStats/5vRail/Voltage", PowerJNI.getUserVoltage5V(), VOLTS_UNIT_STRING);
102-
logger.log(now, "SystemStats/5vRail/Current", PowerJNI.getUserCurrent5V(), AMPS_UNIT_STRING);
103-
logger.log(now, "SystemStats/5vRail/Active", PowerJNI.getUserActive5V());
104-
logger.log(now, "SystemStats/5vRail/CurrentFaults", PowerJNI.getUserCurrentFaults5V());
105-
106-
logger.log(now, "SystemStats/6vRail/Voltage", PowerJNI.getUserVoltage6V(), VOLTS_UNIT_STRING);
107-
logger.log(now, "SystemStats/6vRail/Current", PowerJNI.getUserCurrent6V(), AMPS_UNIT_STRING);
108-
logger.log(now, "SystemStats/6vRail/Active", PowerJNI.getUserActive6V());
109-
logger.log(now, "SystemStats/6vRail/CurrentFaults", PowerJNI.getUserCurrentFaults6V());
110-
11197
logger.log(
11298
now, "SystemStats/BrownoutVoltage", PowerJNI.getBrownoutVoltage(), VOLTS_UNIT_STRING);
11399
logger.log(now, "SystemStats/CPUTempCelcius", PowerJNI.getCPUTemp(), CELSIUS_UNIT_STRING);
100+
101+
logger.log(now, "SystemStats/EpochTimeMicros", HALUtil.getFPGATime(), MICROSECONDS_UNIT_STRING);
114102
}
115103

116104
private void logCan(long now) {
117-
CANJNI.getCANStatus(status);
118-
logger.log(now, "SystemStats/CANBus/Utilization", status.percentBusUtilization);
119-
logger.log(now, "SystemStats/CANBus/OffCount", status.busOffCount);
120-
logger.log(now, "SystemStats/CANBus/TxFullCount", status.txFullCount);
121-
logger.log(now, "SystemStats/CANBus/ReceiveErrorCount", status.receiveErrorCount);
122-
logger.log(now, "SystemStats/CANBus/TransmitErrorCount", status.transmitErrorCount);
123-
124-
logger.log(now, "SystemStats/EpochTimeMicros", HALUtil.getFPGATime(), MICROSECONDS_UNIT_STRING);
105+
for (int i = 0; i < 5; i++) {
106+
CANJNI.getCANStatus(i, status);
107+
logger.log(now, "SystemStats/CANBus/" + i + "/Utilization", status.percentBusUtilization);
108+
logger.log(now, "SystemStats/CANBus/" + i + "/OffCount", status.busOffCount);
109+
logger.log(now, "SystemStats/CANBus/" + i + "/TxFullCount", status.txFullCount);
110+
logger.log(now, "SystemStats/CANBus/" + i + "/ReceiveErrorCount", status.receiveErrorCount);
111+
logger.log(now, "SystemStats/CANBus/" + i + "/TransmitErrorCount", status.transmitErrorCount);
112+
}
125113
}
126114

127115
private void logPdh(long now) {

0 commit comments

Comments
 (0)