Browse Source

AP_HAL_Empty: follow coding style

- Add some spaces
 - Use pragma once
 - Remove ; from method implementation
 - Remove unneeded return
master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
e825eb12f5
  1. 9
      libraries/AP_HAL_Empty/OpticalFlow.h

9
libraries/AP_HAL_Empty/OpticalFlow.h

@ -12,13 +12,10 @@ @@ -12,13 +12,10 @@
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_HAL_EMPTY_OPTICALFLOW_H__
#define __AP_HAL_EMPTY_OPTICALFLOW_H__
#pragma once
class Empty::OpticalFlow : public AP_HAL::OpticalFlow {
public:
void init(AP_HAL::OpticalFlow::Gyro_Cb) {return;};
bool read(Data_Frame& frame) {return false;};
void init(AP_HAL::OpticalFlow::Gyro_Cb) { }
bool read(Data_Frame& frame) { return false; }
};
#endif

Loading…
Cancel
Save