Skip to content

Commit

Permalink
gTemperatureLimit bug fixed, version incremented to 3.3.26
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-git committed Jan 15, 2024
1 parent 1ba883c commit 6611c34
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/************ FIRMWARE AND CAN PROTOCOL VERSION DEFINITION *******************************************/
#define FW_VERSION_MAJOR 3
#define FW_VERSION_MINOR 3
#define FW_VERSION_BUILD 24
#define FW_VERSION_BUILD 26

#define CAN_PROTOCOL_VERSION_MAJOR 1
#define CAN_PROTOCOL_VERSION_MINOR 6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ static int s_canIcubProtoParser_parse_pollingMsg(tCanData *rxpayload, unsigned c
int nom = ((int)rxpayload->b[2])|(((int)rxpayload->b[3])<<8);
int peak = ((int)rxpayload->b[4])|(((int)rxpayload->b[5])<<8);
int ovr = ((int)rxpayload->b[6])|(((int)rxpayload->b[7])<<8);

gTemperatureLimit = ovr;

setMaxCurrent(nom, peak, ovr);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,15 @@ int readI2CTsens(volatile int* temperature)

__delay32(400);

config_sensor();

return I2Cerrcode;

fatal_error:

I2Cdead = TRUE;

config_sensor();

return I2Cerrcode;
}
6 changes: 3 additions & 3 deletions emBODY/eBcode/arch-dspic/board/2foc/appl/2FOC-V3/src/qep.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ inline int QEgetPos()
{
QE_RISE_WARNING(index_broken);

while (poscnt < 0) poscnt += QE_RESOLUTION;
while (poscnt >= QE_RESOLUTION) poscnt -= QE_RESOLUTION;
if (poscnt < 0) poscnt += QE_RESOLUTION;
if (poscnt >= QE_RESOLUTION) poscnt -= QE_RESOLUTION;

POSCNT = (unsigned int)poscnt;
}

poscnt_old = poscnt;
}
}

return __builtin_divsd(((long)poscnt)<<16,QE_RESOLUTION);
}

Expand Down

0 comments on commit 6611c34

Please sign in to comment.