Brownout setting and/or brownout logging problem

Aperta
#443 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, robotics
Ambito
robotics

Direzione di ricerca

The report centers on RobotController.setBrownoutVoltages called in the Java Robot constructor, and on the SystemStats/FaultCounts/Brownout and SystemStats/Faults/Brownout logged fields. Start by reading how the configured brownout voltage is applied and how the brownout fault is counted and logged. Done means the battery reaches the configured threshold before browning out and the fault counter increments. The thread has no decision yet, so confirm scope with maintainers before writing a fix.

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

Descrizione

At Beach Blitz, we set our brownout voltage with the new API:

public Robot() {
    Logger.recordMetadata("CO 2026", "MyProject"); // Set a metadata value
    var hootLogging = SignalLogger.enableAutoLogging(false);
    if(!hootLogging.isOK()){
      DriverStationErrors.reportWarning("Failed to disable CTRE hoot auto-logging", false);
    }
    
    m_robotContainer = new RobotContainer();

    RobotController.setBrownoutVoltages(5.0, 5.5);
    ...

However, we observed brownout behavior close to the default 6.75 V. Here are three matches, two of which our robot browned out in. Note that there are two things that are seemingly issues:

  1. The battery voltage never drops below ~6.25 V despite the setting to brownout at 5 V.
  2. The SystemStats/FaultCounts/Brownout field never increments (and SystemStats/Faults/Brownout never goes true).
Image Image Image

I can't attach the logs, which are too large, but can share them if desired.

https://github.com/Spectrum3847/2026-FM-SystemCore/pull/127 seems to point to a similar issue.

Lingua principale
Java
Stelle
195
Fork
26
Merge medio
4h 1m
PR unite (30g)
11

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 wpilibsuite/SystemcoreTesting

Tutte le issue di wpilibsuite/SystemcoreTesting

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.