From a6ac4228c30effbdbefe6e52564465f0e8761679 Mon Sep 17 00:00:00 2001 From: CoolSpy3 Date: Mon, 27 May 2024 06:52:25 -0700 Subject: [PATCH] [sim] WebSockets Documentation Fixes (#6668) --- .../halsim_ws_core/doc/hardware_ws_api.md | 27 +++++++------- simulation/halsim_ws_core/doc/wpilib-ws.yaml | 36 +++++++++++-------- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/simulation/halsim_ws_core/doc/hardware_ws_api.md b/simulation/halsim_ws_core/doc/hardware_ws_api.md index 061fa984be..cfeef53b3d 100644 --- a/simulation/halsim_ws_core/doc/hardware_ws_api.md +++ b/simulation/halsim_ws_core/doc/hardware_ws_api.md @@ -119,7 +119,7 @@ C++/Java implementation note: these are created as either BuiltInAccelerometer o | ``"voltage"`` | Float | Input voltage, in volts | -| ``"accum_value"`` | Integer | The accumulated value | -| ``">accum_count"`` | Integer | The number of accumulated values | -| ``"voltage"`` | Float | Input voltage, in volts | +| ``"accum_value"`` | Integer | The accumulated value | +| ``">accum_count"`` | Integer | The number of accumulated values | +| ``"axes"`` | Array of float | One array element per axis; value is -1 to 1 range | | ``">povs"`` | Array of integer | One array element per POV; value is angle in degrees of the POV (e.g. 0, 90, 315) if pressed, or -1 if the POV is not pressed | | ``">buttons"`` | Array of boolean | One array element per button; true if button is pressed, false if button is released | +| ``"on": - type: boolean - description: "Whether the compressor is running" - "pressure_switch": - type: boolean - description: "The value of the pressure switch" - ">current": - type: number - description: "The amount of current being drawn by the compressor, in Amps" + type: object + description: "PCM Output Data (type: PCM, device: module number)" + properties: + on": + type: boolean + description: "Whether the compressor is running" + "pressure_switch": + type: boolean + description: "The value of the pressure switch" + ">current": + type: number + description: "The amount of current being drawn by the compressor, in Amps" pwmData: type: object