Fixed the reset for min max edge value. Not compiled as the build is broken.
diff --git a/aos/common/control_loop/ControlLoop-tmpl.h b/aos/common/control_loop/ControlLoop-tmpl.h
index 032d5fc..22712f0 100644
--- a/aos/common/control_loop/ControlLoop-tmpl.h
+++ b/aos/common/control_loop/ControlLoop-tmpl.h
@@ -72,7 +72,7 @@
if (control_loop_->position.FetchLatest()) {
position = control_loop_->position.get();
} else {
- if (control_loop_->position.get()) {
+ if (control_loop_->position.get() && !reset_) {
int msec_age = control_loop_->position.Age().ToMSec();
if (!control_loop_->position.IsNewerThanMS(kPositionTimeoutMs)) {
LOG_INTERVAL(very_stale_position_);
@@ -126,7 +126,7 @@
output.Send();
} else {
// The outputs are disabled, so pass NULL in for the output.
- RunIteration(goal, position, NULL, status.get());
+ RunIteration(goal, position, nullptr, status.get());
ZeroOutputs();
}