syact 0.12.1-alpha

A library to control motors (mainly stepper motors) and components, read data from sensors and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::StepperConst;
use crate::math::force;
use syunit::*;

#[test]
fn torque_dyn() {
    let data = StepperConst::GEN;

    // In stall, the output torque must be equal to the stall torque
    assert_eq!(force::torque_dyn(&data, Velocity::ZERO, 12.0, None), data.torque_stall);
}