Merge branches 'version3' and 'temp' into version3
add log data to file for vision state machine