added cameraPositionErrorFlag and sendCmdMsgErrorFlag to prevent copious warnings
Added code to prevent repeated warnings