Skip to content

Loop times: Go brrrrrrrrr (~30-40ms savings)#29

Open
qwertychouskie wants to merge 5 commits into
mainfrom
jacobsImprovements-rebased
Open

Loop times: Go brrrrrrrrr (~30-40ms savings)#29
qwertychouskie wants to merge 5 commits into
mainfrom
jacobsImprovements-rebased

Conversation

@qwertychouskie
Copy link
Copy Markdown
Member

updateSlot/totalUpdateSlots needs a re-think, right now it's a no-op. Getting this right will cut off another ~5ms of loop time. That said, everything should be fine in its current state, though it is technically possible (albeit quite unlikely) that the rebase broke something.

@qwertychouskie qwertychouskie changed the title PID: Implement F; Loop times: Go brrrrrrrrr (~30-40ms savings) Loop times: Go brrrrrrrrr (~30-40ms savings) Feb 25, 2024
@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch 4 times, most recently from 9bade71 to ea34847 Compare February 25, 2024 03:05
@qwertychouskie
Copy link
Copy Markdown
Member Author

@stheyounger This is going to be even more important with the extra color sensors being added. 4 color sensors updating all 4 values every loop is 16 values, which will be ~80ms per loop just on the color sensors.

@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch 2 times, most recently from 93cdf00 to 1d557ac Compare March 3, 2024 01:33
@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch from 1d557ac to da66a53 Compare March 5, 2024 04:28
@qwertychouskie qwertychouskie force-pushed the jacobsImprovements-rebased branch from da66a53 to f750bc4 Compare March 5, 2024 04:46
Should help reduce load on the GC a fair bit
Only update one color read per sensor per loop cycle.  Certain aspects of collector sensing now theoretically have slightly longer peak possible latency, but the overall loop time savings are well worth it.

Tested to function via telemetry, needs real drive testing as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant