AME 3623: Project 8: Compasses and Position Control

For this project, you will be writing a control loop that orients the craft to a desired heading.

At the end of this project, you should be able to:

Inertial Measurement Units

Our 9-axis inertial measurement units (IMUs) are composed of a 3-axis linear accelerometer, a 3-axis rate gyroscope, and a 3-axis magnetometer. The accelerometer and gyroscope are simple to calibrate automatically (this is done at power-up). However, because the earth's magnetic field varies depending on where you are located, we must perform a full calibration process in situ. This is done by taking a set of samples from the magnetometer as it is rotated over the full range of orientations that we are interested in.

The IMU library provides the following functions (two of which you already have used):

Component 1: Circuit

There are no changes to be made to your circuit.

Component 2: Compass Software and Configuration

Component 3: Control Software

Implement the following functions:

Component 4: Finite State Machine

Reuse your finite state machine from the prior project.

Component 5: Testing

Component 6: Proportional-Derivative Control

Re-introduce the damping term to your control law. Slowly increase Kd until your craft is approximately critically damped.


What to Hand In

All components of the project are due by Tuesday, April 20th at 5:00 pm.

Grading

Project lead credit:

For a successful project, we expect:


andrewhfagg -- gmail.com

Last modified: Fri Apr 16 12:22:19 2021