bool SGMFastScanSettings::operator ==(const SGMFastScanSettings &other) const{ if( fabs(runSeconds() - other.runSeconds()) < 0.01 && motorSettings() == other.motorSettings() && fabs(scalerTime() - other.scalerTime()) < 0.01 && baseLine() == other.baseLine() && undulatorVelocity() == other.undulatorVelocity()) return true; return false; }
void InitAll() { // int i; // uint8 buffer_in[16]={0}; //uint8 buffer_out[16]={0}; CONSOLE_USART_INIT(); console_send("\r\n Motors device start\r"); LED_INIT(); I2C_INIT(); ReadConfig(); /* #ifdef EEPROM if (ReadConfig()==TRUE) console_send("\nEEPROM start\r"); else { console_send("\nEEPROM is not connect \r\n parameters is enabled by default\r"); SettingsDefault(); } #else SettingsDefault(); CheckAndWriteVersion(); PrintVersion(bufer_cons_out); console_send(bufer_cons_out); #endif */ (SysTick_Config(SystemCoreClock / 16)); motorInitTimer(); motorInitGpio(); motorInit(); motorTest(); motorSettings(); WIZ_GPIO_Install(); WIZ_Config(); console_send("\nWIZNET start\r\n>"); }