Skip to content

Commit

Permalink
revive ld06 pwm control, make output visible to user
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson committed Dec 13, 2023
1 parent 4075a25 commit ddca742
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/libcpp/inc/ld06.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ class LD06
{
++packets_;
// Disabled because scan is more stable when PWM is open loop
/*
last_speed_ = packet.radar_speed;
if (last_speed_ < MINIMUM_LASER_SPEED)
{
Expand All @@ -190,7 +189,7 @@ class LD06
control_pwm_ -= 1;
}
TIM12->CCR2 = control_pwm_;
*/
registers.tim12_mode = control_pwm_;
return EXPECTED_PACKET_LENGTH;
}

Expand Down

0 comments on commit ddca742

Please sign in to comment.