Lines Matching refs:acc_state
81 inv_obj.acc_state = SF_STARTUP_SETTLE; in inv_init_sensor_fusion_supervisor()
302 if (inv_obj.acc_state != SF_STARTUP_SETTLE) { in MLSensorFusionSupervisor()
304 inv_obj.acc_state = SF_DISTURBANCE; //No accels, fast swing in MLSensorFusionSupervisor()
308 && ((inv_obj.acc_state == SF_DISTURBANCE) in MLSensorFusionSupervisor()
309 || (inv_obj.acc_state == SF_SLOW_SETTLE))) { in MLSensorFusionSupervisor()
312 inv_obj.acc_state = SF_FAST_SETTLE; in MLSensorFusionSupervisor()
316 if (inv_obj.acc_state == SF_DISTURBANCE) { in MLSensorFusionSupervisor()
319 inv_obj.acc_state = SF_SLOW_SETTLE; in MLSensorFusionSupervisor()
322 } else if (inv_obj.acc_state == SF_SLOW_SETTLE) { in MLSensorFusionSupervisor()
325 inv_obj.acc_state = SF_NORMAL; in MLSensorFusionSupervisor()
328 } else if (inv_obj.acc_state == SF_FAST_SETTLE) { in MLSensorFusionSupervisor()
331 inv_obj.acc_state = SF_NORMAL; in MLSensorFusionSupervisor()
338 if (inv_obj.acc_state == SF_STARTUP_SETTLE) { in MLSensorFusionSupervisor()
342 inv_obj.acc_state = SF_NORMAL; in MLSensorFusionSupervisor()
345 } else if ((inv_obj.acc_state == SF_NORMAL) in MLSensorFusionSupervisor()
346 || (inv_obj.acc_state == SF_SLOW_SETTLE)) { in MLSensorFusionSupervisor()
348 } else if ((inv_obj.acc_state == SF_DISTURBANCE)) { in MLSensorFusionSupervisor()
350 } else if (inv_obj.acc_state == SF_FAST_SETTLE) { in MLSensorFusionSupervisor()