Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::chassis::BasicDownscaler Class Reference

#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)
 

Detailed Description

Small downscaler for finding an amount to downscale for the shuriken mode in order to conserve power

Constructor & Destructor Documentation

◆ BasicDownscaler()

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

Member Function Documentation

◆ basicDownscale()

double fang::chassis::BasicDownscaler::basicDownscale ( double  speed,
double  coefficient 
)
static

The higher the downscale coefficient, the less downscaling it will do with respect to speed https://www.desmos.com/calculator/5xqaxqilmnj

◆ getDownscale()

double fang::chassis::BasicDownscaler::getDownscale ( const MetersPerSecond speed) const

The documentation for this class was generated from the following files: