Repository navigation
zenointel-sd-2n-4g: run the pan/tilt head at 833 us per microstep - #190
Merged
Merged
Conversation
The 2000/3000 us delays came from the stock config's motor blocks, whose 'timer 2' (pan) and 'timer 3' (tilt) are hardware timer numbers, not milliseconds. On this head the motors run cleanly down to ~650 us now that gpiostep.ko ramps each move up from rest (OpenIPC/firmware#2552), and majestic-af homes at 2000/3000 us whatever the running rate is (OpenIPC/majestic-af#22, pinned by OpenIPC/firmware#2553). 833 us is the stock firmware's own top speed: pan 2.4x and tilt 3.6x faster than before.
PR Summary by QodoIncrease SD-2N-4G pan and tilt cruising speed to 833 µs
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link |
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The SD-2N-4G's
/etc/gpiostep.confsteps the pan/tilt head at 2000/3000 µs per microstep, about 58 and 41 steps/s. Those values came from the stock config's motor blocks. Theirtimer 2(pan) andtimer 3(tilt) are hardware timer numbers, not milliseconds, and the comment presented them as "the stock firmware's motor timers (2 ms pan, 3 ms tilt)".The stock driver's own speed table runs the same motors at up to 1200 half-steps/s (833 µs). Two firmware changes now make that safe here:
gpiostep.koramps every move up from rest.Change
pan_delay_usandtilt_delay_usbecome 833, and the comment says what the numbers are. Pan gets 2.4× faster, tilt 3.6×.Hardware tested on
The device itself: GK7205V510 + MIS2009, Zenointel SD-2N-4G head. It ran the #2552 module and the #22 plugin, with these two values set in the camera's own
/etc/gpiostep.conf. I did not flash an image built from this branch.Evidence
Moves were 40 steps out and back, 3 cycles per run. Position was read back from the picture by phase correlation (about 4–5 px per step).