From 2695ef3361b3aac55584e7ae50c1232166fdf5af Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Tue, 16 Feb 2016 18:00:45 -0800 Subject: [PATCH] itg3200: fixed calibration off by one Signed-off-by: Mihai Tudor Panu --- src/itg3200/itg3200.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itg3200/itg3200.cxx b/src/itg3200/itg3200.cxx index 6b00cf4d..1f2f2ffb 100644 --- a/src/itg3200/itg3200.cxx +++ b/src/itg3200/itg3200.cxx @@ -86,7 +86,7 @@ Itg3200::calibrate(void) for(int i = 0; i < reads; i++){ Itg3200::update(); - if (i > skip){ + if (i >= skip){ for (int j = 0; j < 3; j++){ temp[j] += m_rotation[j]; }