diff --git a/firmware/src/build_config.hpp b/firmware/src/build_config.hpp index d359dfb..5d646d5 100644 --- a/firmware/src/build_config.hpp +++ b/firmware/src/build_config.hpp @@ -39,9 +39,9 @@ static constexpr int cycles_to_skip = 3; static constexpr unsigned ChargerTimeout_ms = 1000; static constexpr unsigned CommandRateLimit_ms = 1500; -static constexpr unsigned VinMin_mV = 4300; -static constexpr unsigned VinMax_mV = 6700; -static constexpr unsigned PRInductance_pH = 10500000; +static constexpr unsigned VinMin_mV = 4800; +static constexpr unsigned VinMax_mV = 14400; +static constexpr unsigned PRInductance_pH = 12300000; static constexpr unsigned ReducedCurrentVoltage_mV = 4800; static constexpr int cycles_to_skip = 5; diff --git a/firmware/src/magnet/magnet.cpp b/firmware/src/magnet/magnet.cpp index 4816558..ee0f568 100644 --- a/firmware/src/magnet/magnet.cpp +++ b/firmware/src/magnet/magnet.cpp @@ -88,18 +88,18 @@ static constexpr std::uint16_t TurnOffCycleArray[][2] = #else { 475, 0 }, - { 475, 0 }, - { 475, 0 }, - { 427, 1 }, - { 427, 1 }, - { 427, 1 }, - { 384, 0 }, - { 384, 0 }, - { 384, 0 }, - { 346, 1 }, - { 346, 1 }, - { 346, 1 }, - { 311, 0 }, + { 435, 0 }, + { 400, 1 }, + { 370, 0 }, + { 335, 1 }, + { 310, 0 }, + { 280, 1 }, + { 240, 0 }, + { 215, 1 }, + { 190, 0 }, + { 175, 1 }, + { 150, 0 } + /*{ 311, 0 }, { 311, 0 }, { 311, 0 }, { 280, 1 }, @@ -141,7 +141,7 @@ static constexpr std::uint16_t TurnOffCycleArray[][2] = { 79, 1 }, { 79, 1 }, { 79, 1 } - + */ #endif }; diff --git a/firmware/src/magnet/magnet.hpp b/firmware/src/magnet/magnet.hpp index 7b2635d..a8187a1 100644 --- a/firmware/src/magnet/magnet.hpp +++ b/firmware/src/magnet/magnet.hpp @@ -33,7 +33,7 @@ void poll(); /** * Maximum number of turn on/off switching cycles. */ -static constexpr std::uint8_t MinTurnOnCycles = 3; +static constexpr std::uint8_t MinTurnOnCycles = 2; static constexpr std::uint8_t MaxCycles = 10; /** diff --git a/firmware/src/main.cpp b/firmware/src/main.cpp index d7e6d46..34f48eb 100644 --- a/firmware/src/main.cpp +++ b/firmware/src/main.cpp @@ -356,7 +356,7 @@ __attribute__((noinline)) #endif void init() { - board::syslog("Boot\r\n"); + board::syslog("NEW VERSION EPM FAST\r\n"); board::syslog("FW built at "); board::syslog(__DATE__); board::syslog("\r\n");