|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <basic_downscaler.hpp>
Public Member Functions | |
| BasicDownscaler (double downscaleCoefficient) | |
| double | getDownscale (const MetersPerSecond &speed) const |
Static Public Member Functions | |
| static double | basicDownscale (double speed, double coefficient) |
Small downscaler for finding an amount to downscale for the shuriken mode in order to conserve power
| fang::chassis::BasicDownscaler::BasicDownscaler | ( | double | downscaleCoefficient | ) |
The high the downscale coefficient, the less downscaling it will do with respect to speed https://www.desmos.com/calculator/5xqaxqilmnj
|
static |
The higher the downscale coefficient, the less downscaling it will do with respect to speed https://www.desmos.com/calculator/5xqaxqilmnj
| double fang::chassis::BasicDownscaler::getDownscale | ( | const MetersPerSecond & | speed | ) | const |