Welcome to the K-Scale Operating System!
crosstoolchain
You can install cross by running:
cargo install crossNative build:
cargo buildYou can run the kos-stub endpoint for testing purposes using the command:
cargo run --bin kos-stubAfter doing this, you can test the endpoint using the pykos client:
import pykos
client = pykos.KOS("127.0.0.1")Cross build for kbot:
cross build --release --target aarch64-unknown-linux-gnuRUST_LOG=debug cargo runYou can specify logging levels for individual modules by adding module_name=log_level to the RUST_LOG environment variable. For example:
RUST_LOG=debug,krec=warn cargo runFeatures are how you specify the specific platform to run K-OS on (e.g. -F kos-kbot when running on K-Bot)
- kos-kbot
- zeroth-01 (not finished)
- sim (not finished)
Reference the existing platforms / features in platforms.
You essentially create another package (Cargo.toml, lib.rs, etc) with the necessary actuator and imu implementations according to the specifications in kos-core
To save trace logs to a file, pass the --log flag:
cargo run -- --log- Use
cargo fmt --allto format the code. - Use
cargo clippyto check for lint errors. - Use
cargo testto run the tests. - Use
tracingfor logging. - Use
eyreto handle errors. - No
unwrap()orexpect().
This project is licensed under the MIT License. See the LICENSE file for details.