At the end of this project, you should be able to:
void set_motors(float val[3])
This function sets the magnitude and direction of thrust for each of the three fans. Note that a positive val must correspond to air flow through the "natural" direction of the duct (the fan pushes air over the motor).
Within this function, declare the following constant:
const float negative_gain[3] = {1.0, 1.0, 1.0};If the incoming val is negative, then it should first be multiplied by the corresponding negative_gain before bounding and conversion to an integer. We will use this in the next project to properly balance the efficient and inefficient directions of air flow.
For a successful project, we expect:
Last modified: Sat Mar 27 15:29:00 2021