Brownout setting and/or brownout logging problem

オープン
#443 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, robotics
領域
robotics

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Java
スター
195
フォーク
26
平均マージ
4時間 1分
マージ済み PR(30日)
11

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wpilibsuite/SystemcoreTesting のほかの issue

wpilibsuite/SystemcoreTesting の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。