add swing detect.
Merge branch 'feature/controll_swing' into feature/controll