refactoring
This commit is contained in:
parent
e0a5c3dc12
commit
2ce0bef9b9
|
@ -67,7 +67,7 @@ void GppwmChannel::init(bool usePwm, SimplePwm* pwm, OutputPin* outputPin, const
|
||||||
m_config = config;
|
m_config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
float GppwmChannel::getOutput() const {
|
percent_t GppwmChannel::getOutput() const {
|
||||||
expected<float> loadAxisValue = readGppwmChannel(m_config->loadAxis PASS_ENGINE_PARAMETER_SUFFIX);
|
expected<float> loadAxisValue = readGppwmChannel(m_config->loadAxis PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
||||||
// If we couldn't get load axis value, fall back on error value
|
// If we couldn't get load axis value, fall back on error value
|
||||||
|
|
|
@ -12,7 +12,7 @@ public:
|
||||||
|
|
||||||
void init(bool usePwm, SimplePwm* pwm, OutputPin* outputPin, const ValueProvider3D* table, const gppwm_channel* config);
|
void init(bool usePwm, SimplePwm* pwm, OutputPin* outputPin, const ValueProvider3D* table, const gppwm_channel* config);
|
||||||
void update();
|
void update();
|
||||||
float getOutput() const;
|
percent_t getOutput() const;
|
||||||
void setOutput(float result);
|
void setOutput(float result);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue