\[ \begin{align}\begin{aligned}\newcommand\blank{~\underline{\hspace{1.2cm}}~}\\% Bold symbols (vectors) \newcommand\bs[1]{\mathbf{#1}}\\% Differential \newcommand\dd[2][]{\mathrm{d}^{#1}{#2}} % use as \dd, \dd{x}, or \dd[2]{x}\\% Poor man's siunitx \newcommand\unit[1]{\mathrm{#1}} \newcommand\num[1]{#1} \newcommand\qty[2]{#1~\unit{#2}}\\\newcommand\per{/} \newcommand\squared{{}^2} \newcommand\cubed{{}^3} % % Scale \newcommand\milli{\unit{m}} \newcommand\centi{\unit{c}} \newcommand\kilo{\unit{k}} \newcommand\mega{\unit{M}} % % Percent \newcommand\percent{\unit{{\kern-4mu}\%}} % % Angle \newcommand\radian{\unit{rad}} \newcommand\degree{\unit{{\kern-4mu}^\circ}} % % Time \newcommand\second{\unit{s}} \newcommand\s{\second} \newcommand\minute{\unit{min}} \newcommand\hour{\unit{h}} % % Distance \newcommand\meter{\unit{m}} \newcommand\m{\meter} \newcommand\inch{\unit{in}} \newcommand\foot{\unit{ft}} % % Force \newcommand\newton{\unit{N}} \newcommand\kip{\unit{kip}} % kilopound in "freedom" units - edit made by Sri % % Mass \newcommand\gram{\unit{g}} \newcommand\g{\gram} \newcommand\kilogram{\unit{kg}} \newcommand\kg{\kilogram} \newcommand\grain{\unit{grain}} \newcommand\ounce{\unit{oz}} % % Temperature \newcommand\kelvin{\unit{K}} \newcommand\K{\kelvin} \newcommand\celsius{\unit{{}^\circ C}} \newcommand\C{\celsius} \newcommand\fahrenheit{\unit{{}^\circ F}} \newcommand\F{\fahrenheit} % % Area \newcommand\sqft{\unit{sq\,\foot}} % square foot % % Volume \newcommand\liter{\unit{L}} \newcommand\gallon{\unit{gal}} % % Frequency \newcommand\hertz{\unit{Hz}} \newcommand\rpm{\unit{rpm}} % % Voltage \newcommand\volt{\unit{V}} \newcommand\V{\volt} \newcommand\millivolt{\milli\volt} \newcommand\mV{\milli\volt} \newcommand\kilovolt{\kilo\volt} \newcommand\kV{\kilo\volt} % % Current \newcommand\ampere{\unit{A}} \newcommand\A{\ampere} \newcommand\milliampereA{\milli\ampere} \newcommand\mA{\milli\ampere} \newcommand\kiloampereA{\kilo\ampere} \newcommand\kA{\kilo\ampere} % % Resistance \newcommand\ohm{\Omega} \newcommand\milliohm{\milli\ohm} \newcommand\kiloohm{\kilo\ohm} % correct SI spelling \newcommand\kilohm{\kilo\ohm} % "American" spelling used in siunitx \newcommand\megaohm{\mega\ohm} % correct SI spelling \newcommand\megohm{\mega\ohm} % "American" spelling used in siunitx % % Capacitance \newcommand\farad{\unit{F}} \newcommand\F{\farad} \newcommand\microfarad{\micro\farad} \newcommand\muF{\micro\farad} % % Inductance \newcommand\henry{\unit{H}} \newcommand\H{\henry} \newcommand\millihenry{\milli\henry} \newcommand\mH{\milli\henry} % % Power \newcommand\watt{\unit{W}} \newcommand\W{\watt} \newcommand\milliwatt{\milli\watt} \newcommand\mW{\milli\watt} \newcommand\kilowatt{\kilo\watt} \newcommand\kW{\kilo\watt} % % Energy \newcommand\joule{\unit{J}} \newcommand\J{\joule} % % Composite units % % Torque \newcommand\ozin{\unit{\ounce}\,\unit{in}} \newcommand\newtonmeter{\unit{\newton\,\meter}} % % Pressure \newcommand\psf{\unit{psf}} % pounds per square foot \newcommand\pcf{\unit{pcf}} % pounds per cubic foot \newcommand\pascal{\unit{Pa}} \newcommand\Pa{\pascal} \newcommand\ksi{\unit{ksi}} % kilopound per square inch % NOTE: do NOT define \bar -- it is the built-in LaTeX accent used by \bar{x}, % \bar{y} (sample means). Redefining it made those render as the word "bar". \newcommand\barunit{\unit{bar}} \end{aligned}\end{align} \]

Nov 16, 2026 | 459 words | 5 min read

19.6. Milestone 4 - Controller Trace (Individual)#

At a Glance

What you will do: Show that you can follow your own team’s controller from input to output. Trace one sensor reading to the actuator commands it produces, and explain one tuning cycle that you ran yourself.

What you will submit: Your written trace and explanation, directly in Gradescope.

Every team member should be able to explain how the whole controller works, including the parts that other members wrote. In this activity, you do this on your own, using the current version of your team’s controller. This is the individual check that goes with the team deliverables in Milestone 4.

19.6.1. Trace the Controller#

Open your team’s student_controller/ package and your Milestone 3 flowchart. Choose one of the scenarios below. Follow it through your control functions, one flowchart box at a time, from the sensor readings to the actuator commands.

Scenario

Conditions

Cold night

temperature_c reads \(14\ ^\circ\text{C}\), night setpoint \(18\ ^\circ\text{C}\), all other readings nominal

Frozen K30

The K30 has frozen at \(1210\ \text{ppm}\) while the true concentration is near \(900\ \text{ppm}\), and the SCD41 is working

Drifting SCD41

The SCD41 reads \(350\ \text{ppm}\) above the true concentration of about \(900\ \text{ppm}\), and the K30 is working

Storm onset

par_umol_m2_s collapses mid-sol while temperature_c begins to fall

In Gradescope, write your trace as numbered steps. Include the following in your trace:

  • The readings that matter for the scenario

  • Every comparison or calculation your code performs, with the parameter values from your team’s parameter table

  • Any values your code reads from or writes to the state dictionary (integral, previous error, mode flag)

  • The final command for each of the four actuators

Someone who has never seen your code should be able to follow your trace and arrive at the same four numbers.

19.6.2. Describe Your Tuning Cycle#

Describe one tune-test cycle from your team’s tuning log that you ran yourself. Write one paragraph that covers the following.

  • What you changed

  • The metric you expected the change to affect, and the effect you expected

  • What the next run showed, citing the number or plot

  • Your verdict on the change

Your paragraph should match a row of your team’s tuning log that has your name on it.

19.6.3. Answer One Reliability Question#

Answer the following question in 2-3 sentences. On the first tick after the K30 freezes, before any divergence is obvious, what does your controller do? Explain why that behavior is acceptable, or describe the risk it creates.

19.6.4. Submission#

  • Complete this activity directly in Gradescope under 19.6 Milestone 4 - Controller Trace (Individual).

  • Be sure to submit your answers before the deadline listed on the Course Schedule.

Learning Objectives

PR07:

Test Cases and Tracking - Test and track information through flowcharts and programs.

PR08:

Debugging - Debug and refine code so that it achieves its objective without dynamic or semantic errors.

TM02:

Document Contributions - Provide clear evidence of individual contributions to the team’s work, including technical, written, or supportive tasks.

EB03:

Data-Supported Justification - Justify decisions or comparisons using explicit reference to data.