ardupilot/libraries/AP_EFI/AP_EFI_DroneCAN.h
Pradeep CK 71141080a1 AP_EFI : Hirth Driver Addition
Implementation for Hirth.
 - Base class - AP_EFI
 - polynomial functional throttle linearization
 - AP_EFI_State parameter addition and changes for hirth logging
 - to fix autotest errors
 - updated comments
 - Hirth CI/CD autotest fail fixes
 - logging
 - fix CI issues
2023-11-17 13:09:02 +11:00

27 lines
684 B
C++

#pragma once
#include "AP_EFI_config.h"
#if AP_EFI_DRONECAN_ENABLED
#include "AP_EFI.h"
#include "AP_EFI_Backend.h"
#include <AP_DroneCAN/AP_DroneCAN.h>
class AP_EFI_DroneCAN : public AP_EFI_Backend {
public:
AP_EFI_DroneCAN(AP_EFI &_frontend);
void update() override;
static void subscribe_msgs(AP_DroneCAN* ap_dronecan);
static void trampoline_status(AP_DroneCAN *ap_dronecan, const CanardRxTransfer& transfer, const uavcan_equipment_ice_reciprocating_Status &msg);
private:
void handle_status(const uavcan_equipment_ice_reciprocating_Status &pkt);
// singleton for trampoline
static AP_EFI_DroneCAN *driver;
};
#endif // AP_EFI_DRONECAN_ENABLED