edited stateflow to counter chaotic arm movement by adding a smoothing variable