firmware for the SOLID Slow Control Module for SM1
Dependencies: S_SCTRL_SMlib adc_ad9249 mbed sscm_comm AD5384 SWSPI T_adt7320
Diff: main.cpp
- Revision:
- 12:54b96bf7b291
- Parent:
- 11:b1e6d7c18790
- Child:
- 13:ac7235a87242
diff -r b1e6d7c18790 -r 54b96bf7b291 main.cpp --- a/main.cpp Thu Jan 29 11:04:59 2015 +0000 +++ b/main.cpp Mon Oct 12 08:37:18 2015 +0000 @@ -31,9 +31,10 @@ * v 1.79 added hv stet /get string to replace bi(ias) old commands are still working * wait only if cmd is not ready * v 1.86 corrected dac assignment in DEIMOS32 class , correced gain factor in dac AD5384 class + * V 1.90 sthv returns */ -#define VERSION "1.89" +#define VERSION "1.90" #include "SWSPI_BI.h" @@ -87,7 +88,7 @@ int main() { pc.attach(pc_callback); ssc_cmd cmd; - bool heartbeat=true; + bool heartbeat=false; int i = 0; HWlines hwl ; assignports( &hwl ); @@ -194,7 +195,7 @@ if (cmd.con ==2) strtcnt=1; // else it is assumed to be 9 float retvalue=0; for ( u8 bcnt=strtcnt ; bcnt < stpcnt; bcnt++) { - u16 dacvalue; + u16 dacvalue=0; if ( ! deimos[bcnt]) retvalue=200; else { retvalue+=-deimos[bcnt]->setHV(biasvolt,dacvalue);