sd_thread, sd_drive and meas_thread, meas_drv are worked.

On/off control of sd write must be implemented.
Must be reviewed.