Skip to content

This project provides a simple way to verify sensor connections by displaying real-time sensor values on the dashboard. After installing a sensor, you can immediately run this program to ensure that the wiring and setup are correct. It helps teams quickly test and confirm sensor functionality without additional coding.

Notifications You must be signed in to change notification settings

Team6083/SensorCheck

Repository files navigation

SensorCheck

這是一個基於 FRC WPILib 的測試專案,主要用來 快速驗證機器人上的感測器是否接線正確並正常運作
程式會將各種感測器讀取到的數值即時顯示在 SmartDashboard 上,方便在安裝新感測器後立即確認。


功能特色 🚀

  • 自動讀取並顯示以下感測器數據:
    • NavX (SPI)ADXRS450 Gyro
    • 多組 Quadrature Encoder
    • 多組 DutyCycle Encoder
    • Rev 2m Distance Sensor
    • Digital Input (0–9)
  • 所有數據會顯示在 SmartDashboard
  • 內建 CameraServer,可在 Driver Station 顯示即時影像
  • 適合用於 感測器安裝後的快速檢查

命名規則 🏷️

SmartDashboard 顯示的名稱,主要是為了 快速對應感測器的接線位置 (Port)
例如:

  • Encoder_0-1 → 表示這個 Quadrature Encoder 連接在 DIO 0 和 1
  • Encoder_1-2 → 表示這個 Quadrature Encoder 連接在 DIO 1 和 2
  • Encoder_0 → 表示這個 DutyCycle Encoder 使用 DIO 0
  • DigitalInput_3 → 表示這個 DigitalInput 使用 DIO 3
    • 極限開關即是屬於此類
  • NavX_SPI Angle → 表示 NavX 透過 SPI (MXP) 讀取到的角度
  • Rev2mDistanceSensor → 表示 Rev 2m 距離感測器的輸出距離

About

This project provides a simple way to verify sensor connections by displaying real-time sensor values on the dashboard. After installing a sensor, you can immediately run this program to ensure that the wiring and setup are correct. It helps teams quickly test and confirm sensor functionality without additional coding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages