Skip to content
This repository was archived by the owner on Apr 10, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions firmware/src/build_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
26 changes: 13 additions & 13 deletions firmware/src/magnet/magnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -140,7 +140,7 @@ static constexpr std::uint16_t TurnOffCycleArray[][2] =
{ 88, 0 },
{ 79, 1 },
{ 79, 1 },
{ 79, 1 }
*/{ 79, 1 }
Copy link
Member

Choose a reason for hiding this comment

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

There is no point keeping commented-out code under version control.


#endif
};
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/magnet/magnet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down