I'm controlling an Insta360 Flow 2 Pro (firmware 5.50.80) from my own app with DockKit (iPhone 15 Pro, iOS 26.6.1). Pan and tilt work fine.
I need my app to switch the phone between portrait and landscape automatically, the way the gimbal's Switch button and the Insta360 app do. Is there a DockKit API for this? Is there also a way to read which orientation the gimbal is in?
I tried turning the roll motor myself, and it doesn't work:
// roll by speed (±45°/s), and by position (±90°, relative and absolute)
try await accessory.setAngularVelocity(Vector3D(x: 0, y: 0, z: rollSpeed))
try await accessory.setOrientation(Vector3D(x: 0, y: 0, z: -.pi / 2),
duration: .seconds(1.5), relative: true)
Both calls return no error, but the phone doesn't turn. The same calls move pan as expected. The accessory's limits have no roll axis, and motionStates reports a roll of 0 even after the Switch button has turned the phone to landscape.
Is portrait/landscape switching supported in DockKit, and if not, is it planned?
Thanks!