Skip to content

Commit

Permalink
Remove unused variable from Motor_Safety.c++.
Browse files Browse the repository at this point in the history
  • Loading branch information
samyarsadat committed Jul 24, 2024
1 parent a958db4 commit 2a4a588
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source Code/pico_ws/src/lib/Motor_lib/src/Motor_Safety.c++
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,6 @@ bool MotorSafety::check_encoder_dir_difference()
*/
bool MotorSafety::check_set_vs_actual_direction()
{
volatile float avrrpm = controller->get_avg_rpm();

if (number_of_encoders_defined > 1 && controller->get_avg_rpm() > 0 && set_actual_direction_check_enabled)
{
if (controller->get_set_motor_direction() != encoders[0]->get_direction())
Expand Down

0 comments on commit 2a4a588

Please sign in to comment.