Path: blob/master/libraries/AP_EFI/AP_EFI_Currawong_ECU.h
9926 views
/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415/*16* AP_EFI_Currawong_ECU.h17*18* Author: Reilly Callaway / Currawong Engineering Pty Ltd19*/2021#pragma once2223#include "AP_EFI_config.h"2425#if AP_EFI_CURRAWONG_ECU_ENABLED2627#include "AP_EFI.h"28#include "AP_EFI_Backend.h"2930class AP_EFI_Currawong_ECU : public AP_EFI_Backend {31public:32AP_EFI_Currawong_ECU(AP_EFI &_frontend);3334void update() override;3536static AP_EFI_Currawong_ECU* get_instance(void)37{38return _singleton;39}4041private:42bool handle_message(AP_HAL::CANFrame &frame);4344static AP_EFI_Currawong_ECU* _singleton;4546friend class AP_PiccoloCAN;47};4849#endif // AP_EFI_CURRAWONG_ECU_ENABLED50515253