add max board temp
This commit is contained in:
parent
dc40db8e74
commit
91bfeffcb3
|
@ -175,8 +175,9 @@ void ESCSerialComm::updateMotorparams(unsigned long loopmillis) {
|
|||
Motorparams.millis=loopmillis;
|
||||
|
||||
|
||||
if (loopmillis>5000) { //wait until voltage is reliable from esc
|
||||
if (loopmillis>20000) { //wait until voltage is reliable from esc
|
||||
minBatVoltage=min(minBatVoltage,getFeedback_batVoltage());
|
||||
maxBoardTemp=max(maxBoardTemp,getFeedback_boardTemp());
|
||||
}
|
||||
|
||||
mincurL=min(mincurL,getFiltered_curL());
|
||||
|
@ -267,8 +268,13 @@ float ESCSerialComm::getMinBatVoltage() {
|
|||
return minBatVoltage;
|
||||
}
|
||||
|
||||
float ESCSerialComm::getMaxBoardTemp() {
|
||||
return maxBoardTemp;
|
||||
}
|
||||
|
||||
void ESCSerialComm::resetStatistics() {
|
||||
minBatVoltage=1000;
|
||||
maxBoardTemp=0;
|
||||
mincurL=0;
|
||||
mincurR=0;
|
||||
maxcurL=0;
|
||||
|
|
|
@ -94,6 +94,7 @@ class ESCSerialComm
|
|||
float getFiltered_curR();
|
||||
|
||||
float getMinBatVoltage();
|
||||
float getMaxBoardTemp();
|
||||
double getCurrentConsumed();
|
||||
double getMeanSpeed();
|
||||
double getTrip();
|
||||
|
@ -124,6 +125,7 @@ class ESCSerialComm
|
|||
double currentConsumed; //Ah
|
||||
|
||||
float minBatVoltage=1000;
|
||||
float maxBoardTemp=0;
|
||||
|
||||
|
||||
float mincurL=0;
|
||||
|
|
Loading…
Reference in New Issue