mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
PID works with max PWM of 255
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
#ifndef POWER_HPP_
|
||||
#define POWER_HPP_
|
||||
|
||||
extern history<uint16_t, 75> milliWattHistory;
|
||||
const uint8_t hz = 32;
|
||||
const uint8_t oscillationPeriod = 3.5 * hz;
|
||||
extern history<uint16_t, oscillationPeriod> milliWattHistory;
|
||||
|
||||
int32_t tempToMilliWatts(int32_t rawTemp, uint16_t mass, uint8_t rawC);
|
||||
void setTipMilliWatts(int32_t mw);
|
||||
|
||||
Reference in New Issue
Block a user