Repository navigation
fh8852v200_lite_tuya-f1602-d2: upright by default, measured pan/tilt travel - #296
Conversation
…travel Updated pan and tilt travel values and adjusted camera orientation settings.
…travel Update camera settings to set image flip and mirror to false.
…travel Clarified camera orientation settings and adjustments for upside down usage.
PR Summary by QodoTuya F1602-D2: upright default and measured pan/tilt travel
AI Description
Merge Risk
|
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 import rules and skills only from the repositories your team follows |
Two changes to the Tuya F1602-D2 profile (from #291), both tested on the camera.
1. Upright by default. The profile assumed a ceiling mount: flip and mirror on, with the pan/tilt directions to match. This is a desk/shelf camera, so it now defaults to standing upright:
customizer.shsetsimage.flipandimage.mirrortofalse, andgpiostep.confhaspan_left=1,tilt_up=-1. The comments in both files, andNOTES.md, say what to change for a ceiling mount: both flips on and both directions reversed.The old comment's reason for flip + mirror (the Bayer table only matched mirrored readout, OpenIPC/firmware#3027) no longer applies since #292 and #294: all four orientations have the right colours.
2. Measured travel. The travel was longer than the head can turn, so every move to the far end of an axis drove the motor into the gearbox stop, where it ground. I drove the head from one stop to the other in small counted moves (
/ptz?move=...&steps=N), comparing snapshots after each, until the picture stopped moving:lr_lenis 290)ud_len)With 320/230 the head drove about 28 (pan) and 84 (tilt) steps into the far stop. The new values stop a few steps short of it. The earlier "~2590 half-steps" pan figure was wrong; the stock 290 was right.
Also new:
pan_frame_steps=128andtilt_frame_steps=60, from the picture shift at 2560x1440 (about 20 px a pan step and 24 px a tilt step). They centre a point double-tapped on the picture, as ongk7205v510_ultimate_zenointel-sd-2n-4g.Tested on the camera, standing upright with flip and mirror off and this
gpiostep.conf:Not covered here: under the streamer's load the head runs about 2.5x slower than
pan_delay_us/tilt_delay_usask for (100 steps take about 2.3 s instead of 0.8 s). That isgpiostep.ko's per-micro-stepcond_resched()handing the core to majestic; with majestic stopped the same move runs at the configured rate. That would need a change in OpenIPC/firmware, not in this profile.🤖 Generated with Claude Code