Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
azriel_shredder.hpp
Go to the documentation of this file.
1#ifndef FANG_ROBOTICS_MCB_CONTROL_CHASSIS_FORMULAE_AZRIEL_SHREDDER_HPP
2#define FANG_ROBOTICS_MCB_CONTROL_CHASSIS_FORMULAE_AZRIEL_SHREDDER_HPP
3namespace fang::chassis
4{
19 {
20 public:
21 struct Config
22 {
23 double biteDepth;
25 double period;
26 double phase = 0;
27 };
28
29 static double razielKalmanShredder(double input, double biteDepth, int biteForce, double period, double phase);
30
32
33 void setBiteDepth(double biteDepth);
34 void setBiteForce(int biteForce);
35 void setPeriod(double period);
36 void setPhase(double phase);
37 double getScalingFactor(double input) const;
38 private:
39 //non-const so that we can add setters for the future
40 double m_biteDepth;
41 int m_biteForce;
42 double m_period;
43 double m_phase;
44 };
45}
46#endif
Definition azriel_shredder.hpp:19
void setBiteForce(int biteForce)
Definition azriel_shredder.cpp:40
void setPeriod(double period)
Definition azriel_shredder.cpp:45
void setBiteDepth(double biteDepth)
Definition azriel_shredder.cpp:35
double getScalingFactor(double input) const
Definition azriel_shredder.cpp:55
void setPhase(double phase)
Definition azriel_shredder.cpp:50
static double razielKalmanShredder(double input, double biteDepth, int biteForce, double period, double phase)
Definition azriel_shredder.cpp:7
Definition quad_drive_data.hpp:12
Definition pwm_info.hpp:4
Definition basic_downscaler.cpp:4
Definition azriel_shredder.hpp:22
double biteDepth
Definition azriel_shredder.hpp:23
double period
Definition azriel_shredder.hpp:25
double phase
Definition azriel_shredder.hpp:26
int biteForce
Definition azriel_shredder.hpp:24