AP_HAL: follow coding style

This commit is contained in:
Lucas De Marchi 2015-12-14 10:37:56 -02:00 committed by Andrew Tridgell
parent 2b681f2f13
commit c7668479bb
2 changed files with 8 additions and 9 deletions

View File

@ -12,13 +12,10 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef __AP_HAL_OPTICALFLOW_H__ #pragma once
#define __AP_HAL_OPTICALFLOW_H__
class AP_HAL::OpticalFlow { class AP_HAL::OpticalFlow {
public: public:
FUNCTOR_TYPEDEF(Gyro_Cb, void, float&, float&, float&);
virtual void init(Gyro_Cb) = 0;
class Data_Frame { class Data_Frame {
public: public:
float pixel_flow_x_integral; float pixel_flow_x_integral;
@ -28,7 +25,9 @@ public:
uint32_t delta_time; uint32_t delta_time;
uint8_t quality; uint8_t quality;
}; };
FUNCTOR_TYPEDEF(Gyro_Cb, void, float&, float&, float&);
virtual void init(Gyro_Cb) = 0;
virtual bool read(Data_Frame& frame) = 0; virtual bool read(Data_Frame& frame) = 0;
}; };
#endif