![]() ![]() ![]() Decrease the queue size when the polling rate is clearly not easily approaching its expected value. Increase the queue size when the polling rate is measured to be high enough to appear spiky / overshooting. You will need to move the target axis smoothly (so you get changes without interruption) and fast (so that the differences are large enough to manifest after the analog to digital conversion). Both parameters can be changed at the top of the code. The target axis to monitor for changes is the left stick's X-axis. The code collects timestamps for 20 samples in a queue and outputs an average rate by dividing the number of samples by the difference in time over 20 (actually 19) samples. You'll need Python and the "inputs" library which you can get by running "pip install inputs". Used DS4Windows for the DualShock 4 controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |