mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
increased to 160hz
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2043 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
ceff21a0ec
commit
33c9f047eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user