Skip to content

Hotfixes newcore #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static std::array<InitialServoPosition, 6> const INITIAL_SERVO_POSITION =

bool set_initial_servo_position(int const id, float const target_angle)
{
auto isTimeout = [](unsigned long const start) -> bool { return ((millis() - start) > 2000); };
auto isTimeout = [](unsigned long const start) -> bool { return ((millis() - start) > 5000); };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't harm any operation, you just have to wait longer in case something does indeed time out 🤷 .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Come to think of it, you are miss reading the code. The timeout function is only applied for 2 individual steps. This means that the timeout is not for the whole function but only for those two steps. Consequently the delay(500); is not negatively effecting the timeout.

Can we please go back to assessing a root cause before throwing around random "hot fixes"?


auto start = millis();

Expand Down