mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 23:43:58 -04:00
AP_HAL_Empty: follow coding style
- Add some spaces - Use pragma once - Remove ; from method implementation - Remove unneeded return
This commit is contained in:
parent
b3a751a199
commit
e825eb12f5
@ -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…
Reference in New Issue
Block a user