WPILib

with VS Code

程式設計開發工具

學習目標

1.下載年度版本

2.軟體安裝及設定

3.熟悉軟體介面操作


一、安裝軟體工具

FRC Game Tools

Game Tools包含FRC Driver Station and FRC Utilities,FRC隊伍需要這些元件來通訊、設置和控制機器人,所有參賽隊伍都必須安裝。

系統需求:Windows 10/8.1/7 SP1

Download https://www.ni.com/zh-tw/support/downloads/drivers/download.frc-game-tools.html#440024

注意:使用LabView當程式語言者,必須先安裝LabView然後才裝Game Tools。

2022-12-06_GameTools_Installation.mp4

下載 Game tools

video_17237814450801-1D6Xm1yG.MP4

安裝 Game tools

video_17237814841482-zq8vEj02.MP4

啟用 Game tools

video_17237814768639-LWczJmlh.MP4

必須使用FIRST 團隊註冊系統中提供的序列號運行 NI License Manager 以激活視覺開發模塊運行時引擎。

Game tools 啟動序號:B05P07675

After Game tools installation

FRC Driver Station

FRC roboRIO Imaging Tool and Images


Driver Station

Key shortcuts

F1 - Force a Joystick reflesh. 搖桿重置

[ + ] + \ - Enable the Robot. (the 3 keys above Enter on most keyboards) 啟動機器人 (在Enter上方那3個按鍵)

Enter - Disable the Robot. 關閉機器人

Space - Emergency stop the Robot. After emergency stop is triggered the roboRIO will need to be rebooted before the Robot can be enable again.

緊急停止機器人,之後roboRIO必須重啟。(即使焦點不在Driver Station內,空白鍵還是可以緊急停止機器人。)

Setup the Driver Station


Document 參考文獻

檔案總管開啟 file:///C:/Users/Public/wpilib/2023/documentation/rtd/frc-docs-latest/docs/software/driverstation/driver-station.html

WPILib

Windows作業系統下載的是 .iso,再透過「掛接」來執行安裝。

※會依年度自動安裝於不同資料夾,對應不同的比賽,因此不用先移除,直接再安裝到新年度資料夾即可。

※2023之後不再支援的作業系統Ubuntu 18.04, Windows 7, Windows 8.1, and any 32-bit Windows. MacOS 10.14 is no longer supported as of 2022.

Download https://github.com/wpilibsuite/allwpilib/releases

Installation guide https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html

含步驟畫面說明

安裝後已知問題:https://docs.wpilib.org/en/stable/docs/yearly-overview/known-issues.html

下載 WPILib

video_17237814939521-7suktZI9.MP4

安裝 WPILib

video_17237815071353-UFTOlNwx.MP4

After WPI installation

桌面產生一個資料夾捷徑、個應用程式圖示

2023 WPILib Tools (9個工具在裡面)

Data Log Tool 2023

Glass 2023

OutlineViewer 2023

PathWeaver 2023

roboRIO Team Number Setter 2023

RobotBuilder 2023

Shuffleboard 2023

SmartDashboard 2023

SysId 2023

2023 WPILib Documentation

2023 WPILib VS Code (撰寫程式用這個)

二、使用軟體工具

Dashboard

Driver Station

WPILib Visual Studio Code