Verified Iso Pulse

This commit is contained in:
DragonflyPS 2024-02-19 13:24:17 -08:00
parent 0784295572
commit f2afd85eff
2 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,7 @@
//OUTPUT PULSE PARAMETERS (times in usecs) //OUTPUT PULSE PARAMETERS (times in usecs)
#define OUTPUT_ON_TIME 20 #define OUTPUT_ON_TIME 20
#define OUTPUT_OFF_TIME 70 #define OUTPUT_OFF_TIME 70
#define ISO_PULSE false #define ISO_PULSE true
#define CAP_VOLTAGE_SETPOINT 65 #define CAP_VOLTAGE_SETPOINT 65
//CC Charger Parameters (don't change unless you know what you're doing) //CC Charger Parameters (don't change unless you know what you're doing)

View File

@ -37,8 +37,6 @@ alarm_id_t timeout_alarm_id;
uint32_t pulse_history[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; uint32_t pulse_history[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
uint32_t pulse_counter = 0; uint32_t pulse_counter = 0;
bool tracker = false;
//Prototype functions //Prototype functions
int64_t begin_off_time(alarm_id_t id, void *user_data); int64_t begin_off_time(alarm_id_t id, void *user_data);
@ -158,7 +156,7 @@ int64_t begin_off_time(alarm_id_t id, void *user_data){
} }
int64_t first_off_time(){ void first_off_time(){
gpio_put(OUTPUT_EN_PIN, false); //Turn off output MOSFET gpio_put(OUTPUT_EN_PIN, false); //Turn off output MOSFET