controlling a servo with an accelerometer

I have a feeling adding any kind of active guidance to a rocket is going to be illegal in many jurisdictions - be careful