Kiosk menu navigation from GX12 right stick #4

Open
opened 2026-09-30 21:51:37 +02:00 by hermes · 1 comment
Collaborator

Goal

Drive the initial Ground Station kiosk menu using final RC channels sent by GX12 over the dedicated UART.

Confirmed safety gate

  • CH5/AUX1 is arm state (zero-based UART channel index 4).
  • -1024 is disarmed.
  • >=0 is armed.
  • Input is ignored while armed, and missing/invalid arm input fails closed.

Input model

  • right stick: four-way navigation;
  • one explicitly configured button/switch: select/confirm;
  • inputs are accepted only while the aircraft is confirmed disarmed.

Design constraints

  • Use a debounced directional state machine: one initial step, then controlled repeat while held.
  • Do not bind to fixed channel numbers in code; use /etc/groundstation/config.yml.
  • Initial config assumes Mode-2 right stick on CH1/CH2 but remains configurable.
  • Confirm defaults disabled (confirm_index: -1) until Piotr chooses a physical control.
  • Menu activity must never alter the primary RC stream or Betaflight controls.

Acceptance

A simple menu with at least two visible entries can move up/down/left/right and select once per confirm press while disarmed. The same input does nothing when armed.

## Goal Drive the initial Ground Station kiosk menu using final RC channels sent by GX12 over the dedicated UART. ## Confirmed safety gate - CH5/AUX1 is arm state (zero-based UART channel index `4`). - `-1024` is disarmed. - `>=0` is armed. - Input is ignored while armed, and missing/invalid arm input fails closed. ## Input model - right stick: four-way navigation; - one explicitly configured button/switch: select/confirm; - inputs are accepted only while the aircraft is confirmed disarmed. ## Design constraints - Use a debounced directional state machine: one initial step, then controlled repeat while held. - Do not bind to fixed channel numbers in code; use `/etc/groundstation/config.yml`. - Initial config assumes Mode-2 right stick on CH1/CH2 but remains configurable. - Confirm defaults disabled (`confirm_index: -1`) until Piotr chooses a physical control. - Menu activity must never alter the primary RC stream or Betaflight controls. ## Acceptance A simple menu with at least two visible entries can move up/down/left/right and select once per confirm press while disarmed. The same input does nothing when armed.
Author
Collaborator

Deferred by #20. Radio-stick kiosk navigation is intentionally skipped until resilient telemetry and adaptive-link core are implemented.

Deferred by https://git.piksar.eu/piotr/groundstation/issues/20. Radio-stick kiosk navigation is intentionally skipped until resilient telemetry and adaptive-link core are implemented.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: piotr/groundstation#4