PonomarevDA / tools

Cyphal, DroneCAN and stm32 related tools
MIT License
3 stars 6 forks source link

Update pwm_tester.py #28

Closed AsiiaPine closed 4 months ago

AsiiaPine commented 4 months ago

Fix bug for esc.Status expected power_rating_pct value Since the value generator is sinusoid with range [-1, 1], to convert the value to ptc, we add 1 and then the values range becomes [0, 2], therefore the ptc scaler should be 50, not 100.

Also changed the status message for Actuator commander from esc.Status to acturator.Status - since the Dronecan lib has been changed, so actuator.Status became available

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud