Skip to content

Commit c4032ce

Browse files
committed
Remove prints
1 parent b96c4bd commit c4032ce

File tree

4 files changed

+16
-20
lines changed

4 files changed

+16
-20
lines changed

embedded/app/main/badgerloop_HV.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int init() {
4949
/* initPressureSensors();*/
5050
/* Allocate needed memory for state machine and create graph */
5151
buildStateMachine();
52-
printf("Ezra\n");
52+
5353
/* Init telemetry */
5454
SetupHVTelemetry((char *) DASHBOARD_IP, DASHBOARD_PORT);
5555
SetupHVTCPServer();
@@ -73,7 +73,7 @@ int main() {
7373
fprintf(stderr, "Error in initialization! Exiting...\r\n");
7474
exit(1);
7575
}
76-
fprintf(stderr,"torque,rpm\n");
76+
7777
while(1) {
7878
runStateMachine();
7979

@@ -106,7 +106,7 @@ int main() {
106106
} else {
107107
i += 1;
108108
}
109-
fprintf(stderr, "%d,%d,%d\n", data->rms->actualTorque, data->rms->motorSpeed, getuSTimestamp());
109+
// fprintf(stderr, "%d,%d,%d\n", data->rms->actualTorque, data->rms->motorSpeed, getuSTimestamp());
110110
usleep(10000);
111111

112112
// Control loop

embedded/app/src/states.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ stateTransition_t * pumpdownAction() {
100100
}
101101

102102
// CHECK PRESSURE
103-
/* if(!checkPrerunPressures()){
103+
if(!checkPrerunPressures()){
104104
fprintf(stderr, "Pressure failure\n");
105105
pErrs += 1;
106-
} else pErrs = 0;*/
106+
} else pErrs = 0;
107107

108108
if(!checkPrerunBattery()){
109109
fprintf(stderr, "prerun batt fault\n");
@@ -134,10 +134,10 @@ stateTransition_t * propulsionAction() {
134134

135135
// CHECK FAULT CRITERIA
136136
// CHECK PRESSURE -- PreRun function still valid here
137-
/* if (!checkPrerunPressures()) {
137+
if (!checkPrerunPressures()) {
138138
fprintf(stderr, "Pressure failing\n");
139139
pErrs += 1;
140-
} else pErrs = 0;*/
140+
} else pErrs = 0;
141141

142142
if(!checkRunBattery()){
143143
printf("Failed battery\n");
@@ -239,10 +239,10 @@ stateTransition_t * stoppedAction() {
239239
if (checkNetwork() != 0) return stateMachine.currState->fault;
240240
// CHECK FAULT CRITERIA
241241

242-
/* if(!checkBrakingPressures()){ // Still unchanged
242+
if(!checkBrakingPressures()){ // Still unchanged
243243
printf("Pressures failing\n");
244244
pErrs += 1;
245-
} else pErrs = 0;*/
245+
} else pErrs = 0;
246246

247247
if(!checkBrakingBattery()){ // Still unchanged
248248
fprintf(stderr, "Battery error\n");
@@ -262,10 +262,10 @@ stateTransition_t * stoppedAction() {
262262

263263
stateTransition_t * servPrechargeAction() {
264264
data->state = 6;
265-
/* if (!checkBrakingPressures()) {
265+
if (!checkBrakingPressures()) {
266266
fprintf(stderr, "Pressure failed\n");
267267
return findTransition(stateMachine.currState, RUN_FAULT_NAME);
268-
} else pErrs = 0;*/
268+
} else pErrs = 0;
269269

270270
if (!getIMDStatus()) {
271271
fprintf(stderr, "getIMDStatus()");
@@ -299,10 +299,10 @@ stateTransition_t * crawlAction() {
299299
return findTransition(stateMachine.currState, POST_RUN_NAME);
300300
}
301301

302-
/* if(!checkCrawlPostrunPressures()){
302+
if(!checkCrawlPostrunPressures()){
303303
printf("pres fail\n");
304304
pErrs += 1;
305-
} else pErrs = 0;*/
305+
} else pErrs = 0;
306306

307307
if(!checkCrawlBattery()){
308308
printf("batt fail\n");
@@ -369,7 +369,7 @@ stateTransition_t * safeToApproachAction() {
369369
/* return stateMachine.currState->fault;*/
370370
/* } */
371371
pressure_t *p = data->pressure;
372-
/* if (p->primTank > 30 || p->primTank < -15 ||
372+
if (p->primTank > 30 || p->primTank < -15 ||
373373
p->primLine > 20 || p->primLine < -10 ||
374374
p->primAct > 20 || p->primAct < -10 ||
375375
p->secTank > 30 || p->secTank < -15 ||
@@ -378,7 +378,7 @@ stateTransition_t * safeToApproachAction() {
378378
p->pv > 20 || p->pv < 13 ){
379379
fprintf(stderr, "Pressures are out of the safe range\n");
380380
return findTransition(stateMachine.currState, NON_RUN_FAULT_NAME);
381-
}*/
381+
}
382382

383383
if (checkNetwork() != 0) return findTransition(stateMachine.currState, NON_RUN_FAULT_NAME);
384384
if (data->flags->emergencyBrake) {

embedded/peripherals/src/bms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int bmsParseMsg(uint32_t id, uint8_t *msg) {
4141
switch(id) {
4242
case 0x6B0:
4343
bms->packCurrent = (msg[1] | msg[0] << 8)/10;
44-
printf("0x6B0 Pack Current 1\ 0: %f\n", bms->packCurrent);
44+
//printf("0x6B0 Pack Current 1\ 0: %f\n", bms->packCurrent);
4545
//int64_t tryTwo = (((int16_t) msg[1]) |((int16_t) msg[0]) << 8)/10;
4646
//printf("0x6B0 Pack Current hepl: %lld\n", tryTwo);
4747

middleware/src/data_dump.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ void currentDateTime(char *buf) {
3636

3737
/* Thread Loop */
3838
void *DataLoop(void *arg){
39-
40-
printf("START DATA LOOP\n");
4139

4240
(void) arg;
4341

@@ -58,8 +56,6 @@ void *DataLoop(void *arg){
5856

5957

6058
fprintf(fp, "FRP,FPD,FRC,FP,FEB,TST,TLR,TLR1,TLR2,TLR3,Pps1,Pps2,Pps3,Sps1,Sps2,Sps3,pv,pos,vel,accel,retC,pCurr,pVol,pDCL,pCCL,pRes,pHealth,pOV,pC,pAH,iV,Soc,hiT,loT,cMax,cMin,cAvg,mCells,nCells,igbtTemp,GDBT,CBT,mT,mS,paC,pbC,pcC,dcbV,lvV,cc1,cc2,fC1,fC2,cT,aT,rS,eF,dcbC,oVL\n");
61-
62-
printf("ABOUT TO DATA LOOP\n");
6359

6460
while(1){
6561

0 commit comments

Comments
 (0)