-
Notifications
You must be signed in to change notification settings - Fork 26
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
Reduce update when angle not changing and sleep esp modem #203
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! New contributors :)))
Thanks for the PR <3
Looks like CI failed on autoformatting. If you could run |
Formatting and modem sleep are added, could reduce power consumption when not moving from 110mA to 57mA |
ESP32 builds fail for some reason... I'll look into this later. |
somehow the "weak" directive in |
this can probably be fixed by bumping the esp-hal version to something newer. right now we are using a version that is two major versions out of date. In the past, these updates have often taken a medium amount of effort to pull off the upgrade, as they usually also require updating esp-wifi and sometimes the embassy async stuff. If you want you can try it, otherwise I'll attempt the upgrade myself when I have time. The good news is that almost always, the updates bring many new features and improvements. |
Compare the angle with previous transmitted one after each imu data, and only transmit when the new angle is with significant difference.
Adopted method and parameter from the Arduino repo. Will leave radio inactive time at idle, thus reduce idle power consumption after modem sleep implemented in the protocol stack.