Platform-agnostic low-latency remote control, link diagnostics, touch joystick math, 3D orbit camera gestures, 6-DOF IMU sensor fusion/calibration, control optimization, and browser-first offline artifact caching shared across:
0SFS(0SFS/rc,0SFS/fly) — Open-source flight simulator, phone remote controller, and 3D Earth camera/flight toolingg-AI-org/gdog-remote— Quadruped robot remote controlleresp32-bot/balax-remote— Self-balancing robot PWA remote, live telemetry plotter, 3D orientation view, and live tuning
Design rule:
@g-ai/rcstays vehicle- and app-agnostic. App-specific defaults, firmware compilers, hostnames, manifest URLs, and gain presets live in each consumer repository (0SFS,gdog-remote,balax-remote), while reusable browser-side algorithms live here.
@g-ai/rc/diagnostics—LinkDiagnosticsTracker(rolling RTT, jitter, packet drop %, TX/RX Hz)@g-ai/rc/transport—LowLatencySession,resolveTargetEndpoints(WebRTC DataChannel, WebSocket, WebSerial)@g-ai/rc/controls—computeStickVector,applyDeadzoneAndExpo(floating-origin camera joystick & dual-stick math)@g-ai/rc/tuning—parseSettingsTable,TuningParameter,GainParam(schema-driven live runtime parameter synchronization)@g-ai/rc/cameraGlide—createCameraGlide(inertial 3D camera glide damping)@g-ai/rc/cameraInput—attachOrbitCameraInput, saved input settings (unified mouse/touch/trackpad 3D orbit gestures)@g-ai/rc/imuPhysics—createWheeledRobotPhysics(VQF 6-DOF quaternion fusion, rest/ZUPT, linear motion)@g-ai/rc/imuCalibration— 6-face accelerometer ellipsoid solver, CG lever-arm estimation, HIL replay/evaluation@g-ai/rc/controlOptimizer— Joseph-form DARE LQR solver, inverted-pendulum system ID, control scorecards@g-ai/rc/artifactStore—IndexedDbArtifactStore,MemoryArtifactStore,CompanionSdArtifactStore, pure-TS SHA-256, W-TinyLFU eviction, and browser GitHub release manifest/binary caching