WIP: checkpoint Wii native IMU and upstream IR bridge
Pause Wii pointing work with firmware 0.33-wii-trace installed. Preserve the pinned libogc IR pipeline, calibrated native IMU, software BOOTSEL, and standard camera sensitivity trial. Tracking instability, tracking loss, and ineffective vertical movement remain unresolved. Level-2 camera filtering is not hardware-qualified. Nine targeted regression tests pass; firmware and persistent storage were verified after flashing.
This commit is contained in:
parent
3040c9d294
commit
9f6dddb790
41 changed files with 7990 additions and 150 deletions
|
|
@ -36,30 +36,34 @@ bool probe_controller_input_start(void);
|
|||
// True means a Bluetooth pairing-window request was queued. Long holds NEVER
|
||||
// clear pairings in this bridge, and this does not inject USB controller input.
|
||||
bool probe_controller_input_pairing_task(void);
|
||||
// Core 0 native 08 relay: disabled until explicitly enabled after flash-ready
|
||||
// startup. Disable clears queued data, repeated enable preserves it. Resets
|
||||
// must disable the stream; this never changes Bluetooth bonds or pairing.
|
||||
// Only subsequent selected-source packets enter the separate 32-entry FIFO.
|
||||
// Overflow drops queued history and retains only the arriving packet.
|
||||
#if SWITCH2_BRIDGE_WII_INPUT
|
||||
// Main supplies the same validated calibration record advertised to the host.
|
||||
void probe_controller_input_set_stick_calibration(const uint8_t calibration[9]);
|
||||
// Native feature changes are output barriers, not Bluetooth/IMU resets.
|
||||
void probe_controller_input_set_native_features(uint8_t features);
|
||||
#endif
|
||||
// Core0 native08 output. Disable discards queued/prepared data; repeated enable
|
||||
// preserves it. Joy-Con mode relays its bounded FIFO; Wii mode synthesizes from
|
||||
// fresh calibrated sensors and the selected IR pointer. No pairing changes.
|
||||
void probe_controller_input_set_native_stream(bool enabled);
|
||||
// Copy a full opaque 63-byte payload (without report ID), oldest first. Returns
|
||||
// its never-reused boot-lifetime serial; 0 leaves report untouched. Latest source
|
||||
// or head >=500 ms old discards the FIFO; now_ms is the Pico boot-ms clock.
|
||||
// Nondestructive until successful HID submission followed by commit.
|
||||
// Copy one63-byte payload without report ID. Returns a boot-unique token, or0
|
||||
// without changing output. Nondestructive until successful HID submission and
|
||||
// commit. now_ms uses the Pico boot-ms clock; unavailable/stale input is rejected.
|
||||
uint32_t probe_controller_input_peek_native_report(uint32_t now_ms, uint8_t report[63]);
|
||||
// Remove only the exact current head once. A stale/replaced token cannot pop a
|
||||
// new stream's packet. Before flash-ready startup peek/commit return 0/false.
|
||||
bool probe_controller_input_commit_native_report(uint32_t serial);
|
||||
// Built-in vibration samples only; raw HD-rumble output is not forwarded.
|
||||
// A nonzero token means queued, not acknowledged. Result: 0 pending, 1 real
|
||||
// source ACK, -1 failed/stale. Reset cancels the request, never stored pairing.
|
||||
// A nonzero token means queued, not completed. Result:0 pending,1 completion,
|
||||
// -1 failed/stale. Joy-Con completion is its application ACK; Wii completion is
|
||||
// actual bounded rumble-driver dispatch (not an HD-waveform fidelity claim).
|
||||
// Reset cancels the request, never stored pairing.
|
||||
bool probe_controller_input_play_sample(uint8_t sample_id, uint64_t* token);
|
||||
int probe_controller_input_sample_result(uint64_t token, uint32_t now_ms);
|
||||
void probe_controller_input_cancel_sample(void);
|
||||
// Core 0 at 250 Hz; now_ms uses the Pico boot-millisecond clock. Only fresh
|
||||
// native 08 buttons/stick and cumulative mouse totals are exposed. Inactive
|
||||
// fields are zero except serial; the USB protocol must supply its calibrated
|
||||
// stick center rather than forwarding inactive stick bytes.
|
||||
// Core0 at250Hz; now_ms uses Pico boot milliseconds. Supplies current mapped
|
||||
// controls for diagnostic reports; the native sender owns motion consumption.
|
||||
// Inactive controls are zero except serial; USB supplies its calibrated center.
|
||||
void probe_controller_input_poll(uint32_t now_ms, probe_controller_input* out);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue