dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Revision 8:545391a4a102, committed 2016-03-26
- Comitter:
- sbh9428
- Date:
- Sat Mar 26 06:05:10 2016 +0000
- Parent:
- 7:851659cf185c
- Child:
- 9:6ef12ac2ddc3
- Commit message:
- set buffer size 2048;
Changed in this revision
controlt.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/controlt.cpp Fri Mar 25 09:37:04 2016 +0000 +++ b/controlt.cpp Sat Mar 26 06:05:10 2016 +0000 @@ -225,14 +225,14 @@ table_count++; PWM_value=(float)-1+0.005*table_count; peltier->set_PWM(PWM_value); - if(table_count>=200) + pc->printf(",build table %d/200", table_count); + if(table_count>200) { table_count=0; mode=0; table_min=table[0]; - table_max=table[199]; + table_max=table[200]; } - pc->printf(",build table %d/200", table_count); } }
--- a/main.cpp Fri Mar 25 09:37:04 2016 +0000 +++ b/main.cpp Sat Mar 26 06:05:10 2016 +0000 @@ -31,7 +31,7 @@ -BufferedSerial pc(USBTX, USBRX); +BufferedSerial pc(USBTX, USBRX, 2048); control_t control(&temp_sensor, &peltier, &pc);