Solar, bat and load power added to data objects

This commit is contained in:
Martin Jaeger
2019-06-18 17:04:33 +02:00
parent 375fcee514
commit 690e204a16
11 changed files with 36 additions and 29 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ void half_bridge_init(int freq_kHz, int deadtime_ns, float min_duty, float max_d
void half_bridge_set_duty_cycle(float duty)
{
float duty_target;
float duty_target = 0; // dummy
// protection against wrong settings which could destroy the hardware
if (duty < _min_duty) {
duty_target = _min_duty;
@@ -59,7 +59,7 @@ void half_bridge_set_duty_cycle(float duty)
void half_bridge_duty_cycle_step(int delta)
{
float duty_target;
float duty_target = 0; // dummy
//duty_target = (float)(TIM1->CCR1 + delta) / (_pwm_resolution / 2);
// protection against wrong settings which could destroy the hardware