Permalink
Browse files

force ocv when dac_set and dac_adc don't match up

  • Loading branch information...
1 parent b72af3d commit 07f43c23b6f0f19393326d462665f1f6addff86d @rsamueli rsamueli committed Jan 23, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 NodeJS/Ardustat_Control/expresserver.js
@@ -465,7 +465,13 @@ function data_parse(data)
id = out['id'];
res_table = undefined
}
-
+
+ //force ocv when dac_set and dac_adc don't match up
+ if (out['mode'] != 1 & out['dac_set'] - out['dac_adc'] > 900)
+ {
+ ocv();
+ }
+
if (mode != out['mode'])
{

1 comment on commit 07f43c2

Owner

dansteingart commented on 07f43c2 Jan 24, 2012

nice!

Please sign in to comment.