Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPS5020 UI support (currents above 9.99A) #201

Merged
merged 5 commits into from
Jul 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add UI support for above 9.99A on DPS5020
  • Loading branch information
lukedempsey committed Oct 30, 2019
commit a831bcb9af381783dc4d45ca975e868aca48671e
2 changes: 2 additions & 0 deletions opendps/dps-model.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#ifndef CONFIG_DPS_MAX_CURRENT
#define CONFIG_DPS_MAX_CURRENT (20000) // Please note that the UI currently does not handle settings larger that 9.99A
#endif
#define CURRENT_DIGITS 2
#define CURRENT_DECIMALS 2
#define ADC_CHA_IOUT_GOLDEN_VALUE (59)
#define A_ADC_K (float)6.75449f
#define A_ADC_C (float)-358.73f
Expand Down