added sensor mode constants to cpp