compile OK
Front camera logic update
refactor code