Heater for threaded program

Dependents:   LEX_Threaded_Programming_V3

Changes

RevisionDateWhoCommit message
50:ad9a1eb063b3 2020-03-30 justinbuckland removed old code no longer being used default tip
49:35fd40559960 2020-03-09 justinbuckland no change
48:cd2a9b799e89 2019-12-17 justinbuckland Added R_SMOOTH = 0.9 (resistance value smoothed over 10 readings); enables proportional-only control, high gain, no oscillation
47:06a9691d0a7b 2019-11-18 justinbuckland Corrected variance calculation
46:47c394467c66 2019-11-18 justinbuckland added R_smooth calculation to reduce noise
45:5f588512529b 2019-11-16 justinbuckland Added calculation of variance of resistance measurements
44:e358867319f6 2019-11-15 justinbuckland undo accidentally committed guard heater ratio variation with duty cycle
43:d34ac9d8648c 2019-11-11 justinbuckland no change
42:166d9bc7675e 2019-10-17 justinbuckland Added R_avg calc and fixed Get_D to return float
41:b1602c68abcd 2019-10-14 justinbuckland Moved error calculation into Heater::update;
40:2be211a07d09 2019-10-03 paullj added hard-code option fro guard drive ratio (for debugging)
39:5dffedda7a0d 2019-09-30 paullj update PIC algorithm to allow no integral term (proportional controller) if integral time const = 0
38:3a2778f1f90a 2019-09-24 paullj Added specific printf required for gui;
37:688dad0e1b76 2019-09-24 justinbuckland Formatting updates
36:a8130bd29349 2019-09-23 justinbuckland fixed bugs in pressure thread and heater PID calc
35:5acf01897ed6 2019-09-23 justinbuckland Pass calibration coefficients to heater; heater converts ADC->Ohms and returns R in Ohms
34:294adcc3e4b2 2019-09-20 justinbuckland Added board UID, ADC->Ohms resistance cal table; Added pressure control
33:52ab0641f2e6 2019-09-19 paullj Updated memspcr.pb.h and memspcr.pb.c as well as increase buffer size
32:34921454e932 2019-09-04 justinbuckland PC output format updated
31:7c6f05326c4d 2019-08-30 omatthews All globals removed
30:055d856f05b5 2019-08-29 omatthews Edits made, but errors in temperature logging
29:dd66aa2a4925 2019-08-28 intrinseca Review comments
28:88d9088ddb8a 2019-08-27 omatthews Final working threaded version - used threads initiated by tickers instead of functions in tickers.
27:bb97231d1be9 2019-08-27 omatthews For Paul
26:f6c98b05ee85 2019-08-27 omatthews Forgot ADC init
25:09a315a59956 2019-08-19 omatthews 10/08/2019
24:6debc2fb9ff3 2019-08-15 omatthews Working gains
23:947850bbf325 2019-08-07 omatthews Updated gains
22:085b53e06065 2019-08-06 omatthews Updated to change log file
21:e2a504521b46 2019-08-06 omatthews AD_Logging
20:2d34a03ae57e 2019-08-07 omatthews Switching over to ticks
19:fccdd7127f94 2019-07-30 omatthews Added guards
18:f5d26d3d532f 2019-07-28 omatthews Added in consts
17:0bfed0e96927 2019-07-25 omatthews Working pretty well
16:cd837b230b09 2019-07-24 omatthews Works quite well - needed to pass by pointer to change duty cycle!
15:e7838491c104 2019-07-24 omatthews Compiler error
14:f266bf960b8d 2019-07-23 omatthews Code working but error still ~1deg - needs improvement
13:8629d78fd93b 2019-07-23 omatthews Working Bang Bang with PWM (needed to reduce period)
12:8a048f111140 2019-07-23 omatthews PWM oscillating heavily
11:785a0329f802 2019-07-23 omatthews Working before PWM
10:0e16d8430d66 2019-07-22 omatthews Ensuring ADC read is fast enough
9:405e86b02d63 2019-07-19 omatthews PWM first attempt
8:5da71ae16115 2019-07-19 omatthews Overshoot;
7:59ece353eea2 2019-07-19 omatthews Trouble with PWM. Come back later
6:71d9c10fca4a 2019-07-18 omatthews It keeps crashing I can't go on
5:21442d9d19c5 2019-07-18 omatthews PWM first attempt;
4:29ffcc7b410e 2019-07-18 omatthews Final design before PWM
3:313711a66929 2019-07-17 omatthews Ramp added
2:7f15386fcc90 2019-07-17 omatthews Commit for testing ADC error;
1:4435d407d827 2019-07-17 omatthews Implemented heaters
0:4e33cc8171f4 2019-07-17 omatthews First attempt to add in heater