Skip to content

Commit

Permalink
dcm224 i_max set to 4.9V
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Apr 17, 2020
1 parent 24e6aed commit 4e1c615
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/eez/modules/dcm220/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ namespace dcm220 {

#define BUFFER_SIZE 20

static const float PTOT = 155.0f;

#if defined(EEZ_PLATFORM_STM32)

#define REG0_CC1_MASK (1 << 1)
Expand All @@ -67,8 +69,6 @@ namespace dcm220 {
static GPIO_TypeDef *SPI_IRQ_GPIO_Port[] = { SPI2_IRQ_GPIO_Port, SPI4_IRQ_GPIO_Port, SPI5_IRQ_GPIO_Port };
static const uint16_t SPI_IRQ_Pin[] = { SPI2_IRQ_Pin, SPI4_IRQ_Pin, SPI5_IRQ_Pin };

static const float PTOT = 155.0f;

bool masterSynchro(int slotIndex, uint8_t &firmwareMajorVersion, uint8_t &firmwareMinorVersion, uint32_t &idw0, uint32_t &idw1, uint32_t &idw2) {
uint32_t start = millis();

Expand Down Expand Up @@ -199,7 +199,7 @@ struct Channel : ChannelInterface {

params.I_MIN = 0.0f;
params.I_DEF = 0.0f;
params.I_MAX = slot.moduleInfo->moduleType == MODULE_TYPE_DCM224 ? 5.0f : 4.0f;
params.I_MAX = slot.moduleInfo->moduleType == MODULE_TYPE_DCM224 ? 4.9f : 4.0f;

params.I_MIN_STEP = 0.01f;
params.I_DEF_STEP = 0.01f;
Expand All @@ -208,7 +208,7 @@ struct Channel : ChannelInterface {
params.I_CAL_VAL_MIN = 0.5f;
params.I_CAL_VAL_MID = slot.moduleInfo->moduleType == MODULE_TYPE_DCM224 ? 2.5f : 2.0f;
params.I_CAL_VAL_MAX = slot.moduleInfo->moduleType == MODULE_TYPE_DCM224 ? 4.5f : 3.5f;
params.U_CURR_CAL = slot.moduleInfo->moduleType == MODULE_TYPE_DCM224 ? 25.0f : 20.0f;
params.U_CURR_CAL = params.U_MAX;

params.OVP_DEFAULT_STATE = false;
params.OVP_MIN_DELAY = 0.0f;
Expand Down

0 comments on commit 4e1c615

Please sign in to comment.