Skip to content

Commit

Permalink
Do not log sticky faults on faultlogger to reduce Signal usage
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Mar 28, 2024
1 parent 33f73a7 commit 67c207e
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions src/main/java/com/techhounds/houndutil/houndlog/FaultLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,29 +239,29 @@ public static void register(TalonFX talon) {
talon.getFault_SupplyCurrLimit(),
talon.getFault_Undervoltage(),
talon.getFault_UnlicensedFeatureInUse(),
talon.getFault_UnstableSupplyV(),
talon.getStickyFault_UsingFusedCANcoderWhileUnlicensed(),
talon.getStickyFault_BootDuringEnable(),
talon.getStickyFault_BridgeBrownout(),
talon.getStickyFault_DeviceTemp(),
talon.getStickyFault_ForwardHardLimit(),
talon.getStickyFault_ForwardSoftLimit(),
talon.getStickyFault_FusedSensorOutOfSync(),
talon.getStickyFault_Hardware(),
talon.getStickyFault_MissingDifferentialFX(),
talon.getStickyFault_OverSupplyV(),
talon.getStickyFault_ProcTemp(),
talon.getStickyFault_RemoteSensorDataInvalid(),
talon.getStickyFault_RemoteSensorPosOverflow(),
talon.getStickyFault_RemoteSensorReset(),
talon.getStickyFault_ReverseHardLimit(),
talon.getStickyFault_ReverseSoftLimit(),
talon.getStickyFault_StatorCurrLimit(),
talon.getStickyFault_SupplyCurrLimit(),
talon.getStickyFault_Undervoltage(),
talon.getStickyFault_UnlicensedFeatureInUse(),
talon.getStickyFault_UnstableSupplyV(),
talon.getStickyFault_UsingFusedCANcoderWhileUnlicensed());
talon.getFault_UnstableSupplyV());
// talon.getStickyFault_UsingFusedCANcoderWhileUnlicensed(),
// talon.getStickyFault_BootDuringEnable(),
// talon.getStickyFault_BridgeBrownout(),
// talon.getStickyFault_DeviceTemp(),
// talon.getStickyFault_ForwardHardLimit(),
// talon.getStickyFault_ForwardSoftLimit(),
// talon.getStickyFault_FusedSensorOutOfSync(),
// talon.getStickyFault_Hardware(),
// talon.getStickyFault_MissingDifferentialFX(),
// talon.getStickyFault_OverSupplyV(),
// talon.getStickyFault_ProcTemp(),
// talon.getStickyFault_RemoteSensorDataInvalid(),
// talon.getStickyFault_RemoteSensorPosOverflow(),
// talon.getStickyFault_RemoteSensorReset(),
// talon.getStickyFault_ReverseHardLimit(),
// talon.getStickyFault_ReverseSoftLimit(),
// talon.getStickyFault_StatorCurrLimit(),
// talon.getStickyFault_SupplyCurrLimit(),
// talon.getStickyFault_Undervoltage(),
// talon.getStickyFault_UnlicensedFeatureInUse(),
// talon.getStickyFault_UnstableSupplyV(),
// talon.getStickyFault_UsingFusedCANcoderWhileUnlicensed());

faultSignals.forEach((s) -> SignalManager.register(s));

Expand All @@ -286,12 +286,12 @@ public static void register(CANcoder cancoder) {
cancoder.getFault_BootDuringEnable(),
cancoder.getFault_Hardware(),
cancoder.getFault_Undervoltage(),
cancoder.getFault_UnlicensedFeatureInUse(),
cancoder.getStickyFault_BadMagnet(),
cancoder.getStickyFault_BootDuringEnable(),
cancoder.getStickyFault_Hardware(),
cancoder.getStickyFault_Undervoltage(),
cancoder.getStickyFault_UnlicensedFeatureInUse());
cancoder.getFault_UnlicensedFeatureInUse());
// cancoder.getStickyFault_BadMagnet(),
// cancoder.getStickyFault_BootDuringEnable(),
// cancoder.getStickyFault_Hardware(),
// cancoder.getStickyFault_Undervoltage(),
// cancoder.getStickyFault_UnlicensedFeatureInUse());

faultSignals.forEach((s) -> SignalManager.register(s));

Expand Down Expand Up @@ -320,20 +320,20 @@ public static void register(Pigeon2 pigeon) {
pigeon.getFault_SaturatedGyroscope(),
pigeon.getFault_SaturatedMagnetometer(),
pigeon.getFault_Undervoltage(),
pigeon.getFault_UnlicensedFeatureInUse(),
pigeon.getStickyFault_BootDuringEnable(),
pigeon.getStickyFault_BootIntoMotion(),
pigeon.getStickyFault_BootupAccelerometer(),
pigeon.getStickyFault_BootupGyroscope(),
pigeon.getStickyFault_BootupMagnetometer(),
pigeon.getStickyFault_DataAcquiredLate(),
pigeon.getStickyFault_Hardware(),
pigeon.getStickyFault_LoopTimeSlow(),
pigeon.getStickyFault_SaturatedAccelerometer(),
pigeon.getStickyFault_SaturatedGyroscope(),
pigeon.getStickyFault_SaturatedMagnetometer(),
pigeon.getStickyFault_Undervoltage(),
pigeon.getStickyFault_UnlicensedFeatureInUse());
pigeon.getFault_UnlicensedFeatureInUse());
// pigeon.getStickyFault_BootDuringEnable(),
// pigeon.getStickyFault_BootIntoMotion(),
// pigeon.getStickyFault_BootupAccelerometer(),
// pigeon.getStickyFault_BootupGyroscope(),
// pigeon.getStickyFault_BootupMagnetometer(),
// pigeon.getStickyFault_DataAcquiredLate(),
// pigeon.getStickyFault_Hardware(),
// pigeon.getStickyFault_LoopTimeSlow(),
// pigeon.getStickyFault_SaturatedAccelerometer(),
// pigeon.getStickyFault_SaturatedGyroscope(),
// pigeon.getStickyFault_SaturatedMagnetometer(),
// pigeon.getStickyFault_Undervoltage(),
// pigeon.getStickyFault_UnlicensedFeatureInUse());

faultSignals.forEach((s) -> SignalManager.register(s));

Expand Down

0 comments on commit 67c207e

Please sign in to comment.