question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting last output, even when auto mode is on.

See original GitHub issue

Hello,

I was working with setting the last_output value by calling pid.set_auto_mode(True, last_output=X). The issue I was having is that the auto mode was already on, so the last_output value was not being updated.

This looks to be the intended functionality as the code for set_auto_mode checks if auto_mode is currently on. What I’m wondering is if we could update the docs to state that if you want to set the last_output value, you must first turn auto_mode off, or if we could add a function solely for setting the last_output value.

It’s also possible that setting the last output value during an auto mode is not advisable.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
m-lundbergcommented, Nov 16, 2020

Okay, then we are on the same page. I’m not an expert on setting up PID controllers but from my understanding it’s not completely uncommon to have to perform such a strategy.

I’ll try to make the behaviour a bit clearer in the documentation!

0reactions
keck-in-spacecommented, Nov 13, 2020

Yes that’s exactly what we ended up doing. I am really just saying that process wasn’t super intuitive from my first reading of the documentation. Thanks for taking the time to understand!

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Important Android Auto Settings You Should Tweak ASAP
Here are the most useful settings you should change in Android Auto, both in its developer settings and the main options page.
Read more >
Change the sound output settings on Mac - Apple Support
Change the sound output settings on Mac · On your Mac, choose Apple menu > System Settings, then click Sound in the sidebar....
Read more >
Settings Menu (Common Settings) - Canon - Setting the Machine ...
[Auto Error Skip]. [On], [Off]*. This setting enables you to automatically clear an error and continue printing when an error occurs (Skip Error)....
Read more >
Configure and Verify Ethernet 10/100/1000Mb Half ... - Cisco
In order to resolve this issue, you must configure auto-negotiation manually. Go to the interface mode and execute this command:.
Read more >
iPhone Screen Keeps Dimming With Auto-Brightness Off
Navigate to Settings, select Display & Brightness, tap True Tone, and toggle off this option. Then, go back to Settings, select Accessibility, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found