Brownout setting and/or brownout logging problem

Đang mở
#443 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, robotics
Lĩnh vực
robotics

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
195
Fork
26
Merge trung bình
4 giờ 1 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wpilibsuite/SystemcoreTesting

Tất cả issue của wpilibsuite/SystemcoreTesting

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.