2 unstable releases
new 0.2.0 | Apr 18, 2025 |
---|---|
0.1.0 | Nov 5, 2022 |
#2 in #cycling
63 downloads per month
4KB
powerzones
A utility library for calculating cycling power zones using Hunter Allen's formula.
Usage
Add this to your Cargo.toml
:
[dependencies]
powerzones = "0.1.0"
Example
let ftp: u32 = 200;
let zones = calc_power_zones(ftp);
Tests
cargo test
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
Powerzones is distributed under the terms of the MIT license.
Dependencies
~0.3–0.8MB
~19K SLoC