Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1920f62
Initial Rust work
G2-Games Feb 20, 2025
d579378
updated .gitignore
Skywalker8510 Feb 20, 2025
02e8d3d
cargo update
Skywalker8510 Feb 20, 2025
50908f7
Created setup_motor, calibrate_vertical, and created placeholder calc…
Skywalker8510 Feb 20, 2025
de022e1
Created get_delta_angle
Skywalker8510 Feb 20, 2025
629ea83
implemented calculate_pitch
yetiodo Feb 20, 2025
f878b52
Fixed init issues and other stuff
G2-Games Feb 20, 2025
5270640
Fixed some accelerometer stuff
G2-Games Feb 20, 2025
2d86e2b
Created stringReader
ElliottSuh Feb 21, 2025
709429a
Moved stuff into main.rs
G2-Games Feb 21, 2025
d743bff
updated cargo.toml to use fixed mma8x5x crate
Skywalker8510 Feb 21, 2025
0a20314
updated cargo.toml to use pololu_tic driver from crates.io
Skywalker8510 Feb 21, 2025
a399f3d
cargo update
Skywalker8510 Feb 21, 2025
4f0adb2
Began work on parse_command() and fixed assorted items
Skywalker8510 Feb 21, 2025
30634ee
Started work on getting arguments working
Skywalker8510 Feb 22, 2025
ea28218
Implement non-blocking serial, add more better errors
G2-Games Feb 22, 2025
58e9f12
created get_relative_angle and worked on commands.rs
Skywalker8510 Feb 23, 2025
1bd024f
Finished commands.rs UNTESTED
Skywalker8510 Feb 27, 2025
a35c99f
Fixed error handling
G2-Games Feb 27, 2025
3b44f79
Error improvements and significantly tuned motors
G2-Games Feb 27, 2025
a3b8d34
Added per-axis acceleration and step curves
G2-Games Feb 27, 2025
23a8b9e
Added software e-stop and tweaked microstepping
G2-Games Feb 28, 2025
eea1941
added calibration lockout and fixed error handling
Skywalker8510 Feb 28, 2025
799d9a1
Increased speed a ton
G2-Games Mar 2, 2025
1305d70
Decreased calibration speed
G2-Games Mar 3, 2025
4bac842
Switched to rust 2024
G2-Games Mar 3, 2025
3807880
Updated dependencies
Skywalker8510 Mar 6, 2025
da3f9e4
removed unused dependencies
Skywalker8510 Mar 31, 2025
7b3e362
allow code to run if accelerometer not found.
Skywalker8510 Mar 31, 2025
871095e
Fixed code so it compiles
G2-Games Apr 1, 2025
113ffa2
Update README.md
G2-Games Apr 8, 2025
76c81bc
Make reader read much faster
G2-Games Apr 8, 2025
0be6e42
Merge branch 'main-rust' of https://github.com/unl-rocketry/tracker-e…
G2-Games Apr 8, 2025
189d4b6
Added GETC and VERS commands
G2-Games Apr 8, 2025
e9d715b
Update PROTOCOL.md to match latest version
G2-Games Apr 8, 2025
ccd1f8a
Properly return from new commands
G2-Games Apr 8, 2025
73b1ed6
Ran cargo fmt
G2-Games Apr 8, 2025
f09f2f4
Applied clippy automatic fixes
G2-Games Apr 8, 2025
37bab1a
Create rust.yml
G2-Games Apr 8, 2025
dcd1800
Update rust.yml
G2-Games Apr 8, 2025
db8ecf5
Update rust.yml
G2-Games Apr 8, 2025
9b15f7b
Appeased clippy
G2-Games Apr 8, 2025
a2422d6
added MOVC
Skywalker8510 Apr 15, 2025
fb60c4c
Added ability to stop movement smoothly
G2-Games Apr 15, 2025
75855a2
updated INFO command
Skywalker8510 Apr 19, 2025
64247ff
Attempt to reconnect to the motors after failure
G2-Games Apr 20, 2025
3780432
Fixed "Can't find crate for test" issue
G2-Games Apr 26, 2025
57d7b71
Merge branch 'main' into main-rust
G2-Games Apr 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[target.xtensa-esp32-none-elf]
runner = "espflash flash --monitor"

[env]
ESP_LOG="INFO"

[build]
rustflags = [
"-C", "link-arg=-nostartfiles",
]

target = "xtensa-esp32-none-elf"

[unstable]
build-std = ["alloc", "core"]
10 changes: 0 additions & 10 deletions .clangd

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build, test and lint

on:
push:
branches: [ "main-rust" ]
pull_request:
branches: [ "main-rust" ]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust for Xtensa
uses: esp-rs/xtensa-toolchain@v1.5
with:
default: true
ldproxy: true

- name: Build project
run: cargo build --verbose
- name: Run clippy
run: cargo clippy --no-deps -- -Dwarnings
29 changes: 24 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
.pio
.vscode/*
compile_commands.json
.cache/*
.kateproject.build
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# RustRover
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/


# ignore platformio's build folder
.pio/

.cache/
/compile_commands.json
10 changes: 0 additions & 10 deletions .vscode/extensions.json

This file was deleted.

Loading