From 6ea7e0ce71817c489d19cca4a0a477ddef1c2b25 Mon Sep 17 00:00:00 2001
From: "ucart@co3050-12" <dawehr@iastate.edu>
Date: Fri, 14 Apr 2017 21:38:04 -0500
Subject: [PATCH] Updated optical_flow to work with normalized PWM.

---
 quad/src/quad_app/quad_app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quad/src/quad_app/quad_app.c b/quad/src/quad_app/quad_app.c
index a8a81a083..3839b1b14 100644
--- a/quad/src/quad_app/quad_app.c
+++ b/quad/src/quad_app/quad_app.c
@@ -115,7 +115,7 @@ int quad_main(int (*setup_hardware)(hardware_t *hardware_struct))
 		timer_end_loop(&(structs.log_struct));
 
 		if (iic_get_consecutive_gam_timeout_failures() > 10) {
-			kill_motors(&(structs.hardware_struct.pwm_outputs));
+			kill_motors(&(structs.hardware_struct.motors));
 			printLogging(&structs.hardware_struct, &(structs.log_struct), &(structs.parameter_struct));
 			break;
 		}
-- 
GitLab