CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_EFI/AP_EFI_DroneCAN.h
Views: 1798
1
#pragma once
2
3
#include "AP_EFI_config.h"
4
5
#if AP_EFI_DRONECAN_ENABLED
6
#include "AP_EFI.h"
7
#include "AP_EFI_Backend.h"
8
#include <AP_DroneCAN/AP_DroneCAN.h>
9
10
class AP_EFI_DroneCAN : public AP_EFI_Backend {
11
public:
12
AP_EFI_DroneCAN(AP_EFI &_frontend);
13
14
void update() override;
15
16
static bool subscribe_msgs(AP_DroneCAN* ap_dronecan);
17
static void trampoline_status(AP_DroneCAN *ap_dronecan, const CanardRxTransfer& transfer, const uavcan_equipment_ice_reciprocating_Status &msg);
18
19
private:
20
void handle_status(const uavcan_equipment_ice_reciprocating_Status &pkt);
21
22
// singleton for trampoline
23
static AP_EFI_DroneCAN *driver;
24
};
25
#endif // AP_EFI_DRONECAN_ENABLED
26
27
28