1
0
forked from me/IronOS

PID works with max PWM of 255

This commit is contained in:
David P Hilton
2018-10-29 08:17:58 -06:00
parent 43d11fa8f8
commit 73f07489fe
3 changed files with 10 additions and 7 deletions

View File

@@ -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);