The nextTick should then be half of the period-time of the given frequency
1/frequency gives period-time
Added calculation for high/low-time:<br>
<code>boost_highVoltage_nextTick = clock() + F_CPU * 1/(boost_frequency/2)</code><br>
<br>
The nextTick should then be half of the period-time of the given frequency<br>
<br>
1/frequency gives period-time
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Calculate the next tick for the high-voltage-booster based on the defined tick time interval and a PWM frequency to boost in.
Added calculation for high/low-time:
boost_highVoltage_nextTick = clock() + F_CPU * 1/(boost_frequency/2)The nextTick should then be half of the period-time of the given frequency
1/frequency gives period-time