Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The configurations page is very important: follow this configuration carefullyAll FC configuration pages are important, but misconfiguring the motors might yield catastrophic results (e.g., undesirable flips).

Note

Read and follow the instructions on this page with particular attention.

  • Mixer: this This setting tells the FC what is the shape of the drone. The shape of the drone and the direction of spinning of the motors (clockwise or counter-clockwise) are necessary for the FC’s internal "motor mixing algorithm" that maps higher-level commands (i.e., roll, pitch, yaw, and thrust), which make sense to humans, to lower level commands (“speeds” of each motor: m1, …, m4), which make more sense to the drone.

Note

Do not reverse the direction of the motors.



Info

Take note of the motor numbering with respect to the “front” of the drone, i.e., where the red arrow is pointing. We will define the DD21 front as where the camera is, and place Captain duckie facing in that direction to remind us of it all the time.

Image RemovedImage Added

  • Board and sensor alignment

The FC has an internal IMU, providing linear acceleration and angular rate measurements, with respect to the FC principal axis. What we really need is those measurements with respect to the drone’s body axis instead.

This section of the configuration page allows us to “re-align” the two reference systems.

Status
colourRed
titleTODO
add pretty pictureaxes (ux, uy, uz). The principal axes of the FC, according to the measurements of linear and angular accelerations provided by the IMU, are as follows:

  • ux is positive in the direction identified by the arrow serigraph on the PCB;

  • uz is orthogonal to the plane identified by the FC’s PCB, and positive "coming out of the screen";

  • uy is such that (ux, uy, uz) is a right-handed reference system.

Image Added

Depending on how the FC is physically mounted on the DD21 (e.g., upside down, at an angle, sideways, etc.), angles can be “compensated” to make the drone body frame match this assumption.

Note

This is a crucial setting. A mistake here will cause your drone to confuse left/right, up/down and most probably crash immediately.

If you have followed the hardware assembly instructions provided and mounted the FC under the drone, with the small arrow on it pointing towards the camera, the correct settings are the following:

  • Accelerometer Trim

Leave it with default values of 0 and 0.

  • Arming

This is a safety feature that prevents the drone from arming, hence spinning the motors, if the measured roll or pitch is above the indicated value. In other words, this field should be a small number, e.g., 5 (degrees), so to prevent the drone from accidentally arming while not on a flat surface (e.g., when you are carrying it around in your hands).

  • System configuration

Select values as below. Note that the PID loop frequency is capped at 0.5 kHz by the PWM ESC/Motor protocol.

  • Receiver

Select the MSP RX input option.

  • ESC/Motor Features

The most important item to change is the “Minimum Throttle” setting: bring it up to 1100.

  • Other features

Enable “telemetry” to receive data from the FC to feed to our autonomy stack. Disable other options.

Summary