Browse Source

AP_OpticalFlow: follow coding style

- use pragma once
 - sort headers
 - add missing header - always include what you are using in the header
mission-4.1.18
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
8b21dc9b22
  1. 4
      libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.cpp
  2. 11
      libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.h

4
libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.cpp

@ -12,9 +12,11 @@ @@ -12,9 +12,11 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AP_OpticalFlow_Onboard.h"
#include <AP_HAL/AP_HAL.h>
#include "OpticalFlow.h"
#include "AP_OpticalFlow_Onboard.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX &&\
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP

11
libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.h

@ -12,13 +12,14 @@ @@ -12,13 +12,14 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __AP_OPTICALFLOW_ONBOARD_H__
#define __AP_OPTICALFLOW_ONBOARD_H__
#pragma once
#include <AP_AHRS/AP_AHRS.h>
#include <AP_NavEKF/AP_NavEKF.h>
#include <AP_NavEKF2/AP_NavEKF2.h>
#include <AP_Math/AP_Math.h>
#include <AP_NavEKF2/AP_NavEKF2.h>
#include <AP_NavEKF/AP_NavEKF.h>
#include "OpticalFlow.h"
class AP_OpticalFlow_Onboard : public OpticalFlow_backend
{
@ -31,5 +32,3 @@ private: @@ -31,5 +32,3 @@ private:
void _get_gyro(float&, float&, float&);
uint32_t _last_read_ms;
};
#endif

Loading…
Cancel
Save