From 5cc26569fcead3d00068e1f280c5efcefcad1aa5 Mon Sep 17 00:00:00 2001
From: Randy Mackay <rmackay9@yahoo.com>
Date: Tue, 29 Apr 2014 20:20:46 +0900
Subject: [PATCH] AP_Motors: fix example sketch

---
 .../AP_Motors/examples/AP_Motors_test/AP_Motors_test.pde  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.pde b/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.pde
index 3b96604a8..e12b59ab2 100644
--- a/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.pde
+++ b/libraries/AP_Motors/examples/AP_Motors_test/AP_Motors_test.pde
@@ -109,7 +109,13 @@ void motor_order_test()
 {
     hal.console->println("testing motor order");
     motors.armed(true);
-    motors.output_test();
+    for (int8_t i=1; i <= AP_MOTORS_MAX_NUM_MOTORS; i++) {
+        hal.console->printf_P(PSTR("Motor %d\n"),(int)i);
+        motors.output_test(i, 1150);
+        hal.scheduler->delay(300);
+        motors.output_test(i, 1000);
+        hal.scheduler->delay(2000);
+    }
     motors.armed(false);
     hal.console->println("finished test.");
 
-- 
GitLab