mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[hal] Clean up references to removed HAL features (#8695)
#7695, #7696, #7697, #7701, #7724, #7753, #7861 removed various features from the HAL, but forgot to clean up the handles, the WS API, or both. Additionally, since AnalogInput is the only remaining analog I/O, AnalogJNI was renamed to the more specific AnalogInputJNI.
This commit is contained in:
@@ -78,7 +78,6 @@ The “hardware“ (which might be a full-fledged 3D simulation engine, a physic
|
||||
| ----------------------- | -------------------------- | ------------------------- |
|
||||
| [``"AddressableLED"``][]| Addressable LED Strip | Arbitrary device number |
|
||||
| [``"AI"``][] | Analog input | Port index, e.g. "1", "2" |
|
||||
| [``"AO"``][] | Analog output | Port index, e.g. "1", "2" |
|
||||
| [``"CTREPCM"``][] | PCM | Module number, e.g. "1", "2" |
|
||||
| [``"DIO"``][] | Digital input/output | Port index, e.g. "1", "2" |
|
||||
| [``"dPWM"``][] | Duty cycle output | Arbitrary device number |
|
||||
@@ -116,17 +115,6 @@ The basic analog input just reads a voltage. An analog input can also be configu
|
||||
| ``"<oversample_bits"`` | Integer | The number of oversampling bits |
|
||||
| ``">voltage"`` | Float | Input voltage, in volts |
|
||||
|
||||
#### Analog Output ("AO")
|
||||
|
||||
[``"AO"``]:#analog-output-ao
|
||||
|
||||
The basic analog output just sends a voltage.
|
||||
|
||||
| Data Key | Type | Description |
|
||||
| --------------------- | ------- | ---------------------------------------------------- |
|
||||
| ``"<init"`` | Boolean | If analog output is initialized in the robot program |
|
||||
| ``"<voltage"`` | Float | Output voltage, in volts |
|
||||
|
||||
#### Digital Input/Output ("DIO")
|
||||
|
||||
[``"DIO"``]:#digital-inputoutput-dio
|
||||
@@ -351,17 +339,7 @@ The RoboRIO.
|
||||
|
||||
| Data Key | Type | Description |
|
||||
| ------------------ | ------- | ------------------------------------------- |
|
||||
| ``">fpga_button"`` | Boolean | FPGA button state |
|
||||
| ``">vin_voltage"`` | Float | Vin rail voltage |
|
||||
| ``">vin_current"`` | Float | Vin rail current |
|
||||
| ``">6v_voltage"`` | Float | 6V rail voltage |
|
||||
| ``">6v_current"`` | Float | 6V rail current |
|
||||
| ``">6v_active"`` | Boolean | True if 6V rail active, false if inactive |
|
||||
| ``">6v_faults"`` | Integer | Number of faults on 6V rail |
|
||||
| ``">5v_voltage"`` | Float | 5V rail voltage |
|
||||
| ``">5v_current"`` | Float | 5V rail current |
|
||||
| ``">5v_active"`` | Boolean | True if 5V rail active, false if inactive |
|
||||
| ``">5v_faults"`` | Integer | Number of faults on 5V rail |
|
||||
| ``">3v3_voltage"`` | Float | 3.3V rail voltage |
|
||||
| ``">3v3_current"`` | Float | 3.3V rail current |
|
||||
| ``">3v3_active"`` | Boolean | True if 3.3V rail active, false if inactive |
|
||||
|
||||
@@ -42,7 +42,6 @@ components:
|
||||
- $ref: "#/components/schemas/accelData"
|
||||
- $ref: "#/components/schemas/addressableLEDData"
|
||||
- $ref: "#/components/schemas/aiData"
|
||||
- $ref: "#/components/schemas/aoData"
|
||||
- $ref: "#/components/schemas/dioData"
|
||||
- $ref: "#/components/schemas/dpwmData"
|
||||
- $ref: "#/components/schemas/driverstationData"
|
||||
@@ -138,30 +137,6 @@ components:
|
||||
type: number
|
||||
description: "Input voltage, in volts"
|
||||
|
||||
aoData:
|
||||
type: object
|
||||
required:
|
||||
- type
|
||||
- device
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
description: Device Type (e.g. DIO/AI/PWM/Encoder etc)
|
||||
const: AO
|
||||
device:
|
||||
type: string
|
||||
description: Device Identifier (usually channel)
|
||||
data:
|
||||
type: object
|
||||
description: "Analog Output Data (type: AO, device: channel number)"
|
||||
properties:
|
||||
<init:
|
||||
type: boolean
|
||||
description: "If analog output is initialized in the robot program"
|
||||
"<voltage":
|
||||
type: number
|
||||
description: "Output voltage, in volts"
|
||||
|
||||
dioData:
|
||||
type: object
|
||||
required:
|
||||
@@ -553,39 +528,9 @@ components:
|
||||
type: object
|
||||
description: "RoboRIO Data (type: RoboRIO)"
|
||||
properties:
|
||||
">fpga_button":
|
||||
type: boolean
|
||||
description: "FPGA button state"
|
||||
">vin_voltage":
|
||||
type: number
|
||||
description: "Vin rail voltage"
|
||||
">vin_current":
|
||||
type: number
|
||||
description: "Vin rail current"
|
||||
">6v_voltage":
|
||||
type: number
|
||||
description: "6V rail voltage"
|
||||
">6v_current":
|
||||
type: number
|
||||
description: "6V rail current"
|
||||
">6v_active":
|
||||
type: boolean
|
||||
description: "True if 6V rail active, false if inactive"
|
||||
">6v_faults":
|
||||
type: integer
|
||||
description: "Number of faults on 6V rail"
|
||||
">5v_voltage":
|
||||
type: number
|
||||
description: "5V rail voltage"
|
||||
">5v_current":
|
||||
type: number
|
||||
description: "5V rail current"
|
||||
">5v_active":
|
||||
type: boolean
|
||||
description: "True if 5V rail active, false if inactive"
|
||||
">5v_faults":
|
||||
type: integer
|
||||
description: "Number of faults on 5V rail"
|
||||
">3v3_voltage":
|
||||
type: number
|
||||
description: "3.3V rail voltage"
|
||||
|
||||
Reference in New Issue
Block a user