Shuttlecock stateflow program