mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
uncrustify libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.pde
This commit is contained in:
parent
4e3199a9e9
commit
0fb7e82792
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Example of AP_OpticalFlow library.
|
||||
Code by Randy Mackay. DIYDrones.com
|
||||
*/
|
||||
* Example of AP_OpticalFlow library.
|
||||
* Code by Randy Mackay. DIYDrones.com
|
||||
*/
|
||||
|
||||
#include <FastSerial.h>
|
||||
#include <AP_Common.h>
|
||||
@ -352,42 +352,42 @@ void loop()
|
||||
|
||||
switch( value ) {
|
||||
|
||||
case 'c' :
|
||||
case 'c':
|
||||
// display all config
|
||||
display_config();
|
||||
break;
|
||||
|
||||
case 'f' :
|
||||
case 'f':
|
||||
// set frame rate
|
||||
set_frame_rate();
|
||||
break;
|
||||
|
||||
case 'i' :
|
||||
case 'i':
|
||||
// display image
|
||||
display_image();
|
||||
break;
|
||||
|
||||
case 'I' :
|
||||
case 'I':
|
||||
// display image continuously
|
||||
display_image_continuously();
|
||||
break;
|
||||
|
||||
case 'm' :
|
||||
case 'm':
|
||||
// display motion
|
||||
display_motion();
|
||||
break;
|
||||
|
||||
case 'r' :
|
||||
case 'r':
|
||||
// set resolution
|
||||
set_resolution();
|
||||
break;
|
||||
|
||||
case 's' :
|
||||
case 's':
|
||||
// set shutter speed
|
||||
set_shutter_speed();
|
||||
break;
|
||||
|
||||
case 'z' :
|
||||
case 'z':
|
||||
// clear and reset everything
|
||||
flowSensor.clear_motion();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user