pros-simulator-server

Crates.iopros-simulator-server
lib.rspros-simulator-server
version0.5.0
sourcesrc
created_at2023-11-28 04:41:34.577943
updated_at2024-01-05 05:44:51.546344
descriptionLine-delimited JSON server for pros-simulator
homepage
repositoryhttps://github.com/pros-rs/pros-simulator
max_upload_size
id1051598
size39,437
(doinkythederp)

documentation

README

PROS Simulator Server

Stream newline-delimited JSON events from pros-simulator with a standalone binary

CI Status MIT License Crates.io

Installation

cargo add pros-simulator-server

Overview

This is a standalone server for the VEX V5 robot simulator crate pros-simulator. It outputs newline-delimited JSON events about what is happening in the simulator.

$ pros-simulator-server my_program_using_pros_api.wasm --stdio
"RobotCodeLoading"
"RobotCodeStarting"
"LcdInitialized"
{"LcdUpdated":["","","","","","","","Hello from simulator!"]}
{"LcdUpdated":["","","","","","","Hello from simulator!","Hello from simulator!"]}
{"LcdUpdated":["","","","","","","Hello from simulator!","Goodbye from simulator!"]}
"RobotCodeFinished"
Commit count: 106

cargo fmt