Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloCasi authored Dec 4, 2021
1 parent 294880f commit fd4d73f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 4_Charging_Algorithm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ void Charging_Algorithm(){
else if(powerInput<powerInputPrev && voltageInput<voltageInputPrev){PWM--;} // ↓P ↓V ; ←MPP //D--
else if(voltageOutput<voltageBatteryMax) {PWM++;} // MP MV ; MPP Reached -
powerInputPrev = powerInput; //Store Previous Recorded Power
voltageInputPrev = voltageInput; //Store Previous Recorded Voltage
PWM_Modulation(); //Set PWM signal to Buck PWM GPIO
}
voltageInputPrev = voltageInput; //Store Previous Recorded Voltage
}
PWM_Modulation(); //Set PWM signal to Buck PWM GPIO
}
}
}
Expand Down

1 comment on commit fd4d73f

@symbioquine
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should credit PR #5

Please sign in to comment.