From cd21c5905bcc223dce97d5a6fedd02db730dec5d Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 25 Jan 2012 21:53:20 +0900 Subject: [PATCH] Optical flow - updated standard frame rate to 2000hz and increased resolution to 1600cpi --- ArduCopter/sensors.pde | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/sensors.pde b/ArduCopter/sensors.pde index 18df44a760..271c57ed37 100644 --- a/ArduCopter/sensors.pde +++ b/ArduCopter/sensors.pde @@ -92,6 +92,8 @@ static void init_optflow() SendDebug("\nFailed to Init OptFlow "); } optflow.set_orientation(OPTFLOW_ORIENTATION); // set optical flow sensor's orientation on aircraft + optflow.set_frame_rate(2000); // set minimum update rate (which should lead to maximum low light performance + optflow.set_resolution(OPTFLOW_RESOLUTION); // set optical flow sensor's resolution optflow.set_field_of_view(OPTFLOW_FOV); // set optical flow sensor's field of view // setup timed read of sensor //timer_scheduler.register_process(&AP_OpticalFlow::read);