Lines Matching refs:desiredState
255 State desiredState = OFF; in selectStateForCurrentConditions() local
257 desiredState = REVERSE; in selectStateForCurrentConditions()
259 desiredState = RIGHT; in selectStateForCurrentConditions()
261 desiredState = LEFT; in selectStateForCurrentConditions()
263 desiredState = PARKING; in selectStateForCurrentConditions()
267 return configureEvsPipeline(desiredState); in selectStateForCurrentConditions()
289 bool EvsStateControl::configureEvsPipeline(State desiredState) { in configureEvsPipeline() argument
292 if (mCurrentState == desiredState) { in configureEvsPipeline()
297 LOG(DEBUG) << "Switching to state " << desiredState; in configureEvsPipeline()
300 LOG(DEBUG) << " Desired state " << desiredState in configureEvsPipeline()
301 << " has " << mCameraList[desiredState].size() << " cameras"; in configureEvsPipeline()
305 if (mCameraList[desiredState].size() >= 1) { in configureEvsPipeline()
307 mCameraList[desiredState][0]); in configureEvsPipeline()
313 LOG(DEBUG) << "Unsupported, desiredState " << desiredState in configureEvsPipeline()
314 << " has " << mCameraList[desiredState].size() << " cameras."; in configureEvsPipeline()
320 if (mCameraList[desiredState].size() == 1) { in configureEvsPipeline()
323 mCameraDescList[desiredState][0], in configureEvsPipeline()
329 } else if (mCameraList[desiredState].size() > 1 || desiredState == PARKING) { in configureEvsPipeline()
333 mCameraList[desiredState], in configureEvsPipeline()
340 LOG(DEBUG) << "Unsupported, desiredState " << desiredState in configureEvsPipeline()
341 << " has " << mCameraList[desiredState].size() << " cameras."; in configureEvsPipeline()
381 LOG(INFO) << "Activated state " << desiredState; in configureEvsPipeline()
382 mCurrentState = desiredState; in configureEvsPipeline()