From 33c9f047ebba1bc0a5b735d8af5b81b13c78b807 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Mon, 2 May 2011 04:34:15 +0000 Subject: [PATCH] increased to 160hz git-svn-id: https://arducopter.googlecode.com/svn/trunk@2043 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/ArduCopterMega.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopterMega/ArduCopterMega.pde b/ArduCopterMega/ArduCopterMega.pde index 564f187140..444286aca3 100644 --- a/ArduCopterMega/ArduCopterMega.pde +++ b/ArduCopterMega/ArduCopterMega.pde @@ -456,9 +456,9 @@ void setup() { void loop() { - // We want this to execute at 100Hz - // -------------------------------- - if (millis() - fast_loopTimer > 7) { + // We want this to execute fast + // ---------------------------- + if (millis() - fast_loopTimer > 6) { delta_ms_fast_loop = millis() - fast_loopTimer; fast_loopTimer = millis(); load = float(fast_loopTimeStamp - fast_loopTimer) / delta_ms_fast_loop;