On-off attitude control of flexible satellites