Live CAN health

Aperta
#22 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with the proposed live-can-health change in openspec/changes/live-can-health and read its proposal, spec, design, and tasks. The scope spans a robot-side NetworkTables contract, a live service in flashpoint serve, a CAN health view, and a Python fake robot, and depends on two private issues plus a separate Robot-2026 publisher PR. Check the OpenSpec validation command; done means the contract, guide page, suggested Java sample, and specified tests are complete.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

roadmap

Size: M · Depends on: IgniteRobotics/flashpoint-private#71, IgniteRobotics/flashpoint-private#74 · OpenSpec: live-can-health (archived 2026-11-01)

Status

Update 2026-11-01: merged (PR #35) and archived (PR #41), 22/23 tasks. Spec synced to openspec/specs/live-can-health. Only 7.3 [HUMAN] (pit check with the Robot-2026 publisher deployed) is open, tracked in #13. Close this once it passes.

Status: proposed 2026-10-19. Proposal, spec, design and tasks are written and validate (openspec validate live-can-health --strict).

  • Needs a Robot-2026 PR for the publisher (to be filed separately). This repo carries only the contract, a guide page and a suggested Java sample.
  • Split out of IgniteRobotics/flashpoint#18 (Live & Pit views). The Pit board can consume it later.

Scope

  • Change: live-can-health.
  • What it adds:
    • a robot-side contract: robot code publishes running totals per CTRE device over NetworkTables under /Flashpoint/Live/CANHealth/ (dropouts = loops where the watched status signal is older than 2.5× its update period, worst signal age, resets, fault bits, lowest supply voltage), plus bus status, Enabled and a contract version. Totals, so a 40 ms dropout still counts over a ~100 ms NT link;
    • a live service in flashpoint serve: one NT connection (opened only while a view is open), compares each update with the last to make events (dropout, reboot, fault, bus errors, restart), maps devices to slots through the robot config, and applies the can-health sibling rule (isolated vs bus-wide);
    • a Live CAN view: device grid by bus and slot (ok / dropped / rebooted / faulted / disconnected / missing / unmapped), event log, and in-browser marks ("now wiggling: FL module");
    • a Python fake robot that publishes the contract, for tests and for working without a robot.
  • Both test styles, no mode switch: every event is tagged enabled (drive test) or disabled (shake test).
  • Non-goals: nothing written to the lake (marks and events live in the browser only); the Pit board and its verdict (#18); reading the bus when robot code isn't running (Phoenix diagnostics server dropped); non-CTRE devices; chain-order localisation.
  • New dependency: robotpy-ntcore (2026 line). ADR-0016 will amend ADR-0013 for the outbound robot connection.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
18h 37m
PR unite (30g)
15

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IgniteRobotics/flashpoint

Tutte le issue di IgniteRobotics/flashpoint

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.