Skip to content

Commit

Permalink
Don't attempt to log temperature for brushed motors
Browse files Browse the repository at this point in the history
  • Loading branch information
viggy96 committed Feb 14, 2024
1 parent 65f9e50 commit 3c67883
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ public void periodic() {
handleSmoothMotion();

Logger.recordOutput(m_id.name + CURRENT_LOG_ENTRY, m_spark.getOutputCurrent());
Logger.recordOutput(m_id.name + TEMPERATURE_LOG_ENTRY, m_spark.getMotorTemperature());
Logger.recordOutput(m_id.name + MOTION_LOG_ENTRY, m_isSmoothMotionEnabled);

if (getMotorType() == MotorType.kBrushed) return;
Logger.recordOutput(m_id.name + TEMPERATURE_LOG_ENTRY, m_spark.getMotorTemperature());
}

/**
Expand Down

0 comments on commit 3c67883

Please sign in to comment.