Clamp TEC Settings to Valid & Design Specs Ranges #108
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "linuswck/thermostat:clamp_set_fns_to_design_spec"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR clamps the TEC output value according to design specs and a valid range. Upon test, you can make thermostat to enter an unrecoverable state if the output current is set to 3.0A while the specs points out the max current should be +-2.0A @4V
Also, the firmware should prevent the upper driver to set invalid value. For example, you should not be able to set_max_v to negative value.
Valid Range for TEC Settings related Command
set_i: -2A - 2A
set_max_v: 0-4V
set_max_i_pos: 0-4V
set_max_i_neg: 0-2A
Coverage Test is done with the cmd interface