From c0813f8d6266db71f60d00b8131be98b1ab88c95 Mon Sep 17 00:00:00 2001 From: Adam M Rivera Date: Sat, 17 Mar 2012 01:16:19 -0500 Subject: [PATCH] AP_Declination: Changed test to run in increments of 10 degrees. 1 was too granular. --- .../examples/AP_Declination_test/AP_Declination_test.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde b/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde index b6bea0f8c1..1c78e088e7 100644 --- a/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde +++ b/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde @@ -55,19 +55,19 @@ void setup(void) Serial.begin(115200); - for(int i = -90; i <= 90; i++) + for(int i = -90; i <= 90; i+=10) { - for(int j = -180; j <= 180; j++) + for(int j = -180; j <= 180; j+=10) { declination = AP_Declination::get_declination(i, j); declination_test = get_declination(i, j); if(declination == declination_test) { - Serial.printf("Pass: %i, %i", i, j); + Serial.printf("Pass: %i, %i : %f, %f\n", i, j, declination, declination_test); } else { - Serial.printf("Fail: %i, %i", i, j); + Serial.printf("Fail: %i, %i : %f, %f\n", i, j, declination, declination_test); } } }