Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_CANManager/AP_CAN.h
9532 views
1
#pragma once
2
3
/*
4
* this header contains data common to ArduPilot CAN, rather than to a
5
* specific implementation of the protocols. So we try to share
6
* enumeration values where possible to make parameters similar across
7
* Periph and main firmwares, for example.
8
*
9
* this is *not* to be a one-stop-shop for including all things CAN...
10
*/
11
12
#include <stdint.h>
13
14
class AP_CAN {
15
public:
16
enum class Protocol : uint8_t {
17
None = 0,
18
DroneCAN = 1,
19
// 2 was KDECAN -- do not re-use
20
// 3 was ToshibaCAN -- do not re-use
21
PiccoloCAN = 4,
22
// 5 was CANTester
23
EFI_NWPMU = 6,
24
USD1 = 7,
25
KDECAN = 8,
26
// 9 was MPPT_PacketDigital
27
Scripting = 10,
28
Benewake = 11,
29
Scripting2 = 12,
30
TOFSenseP = 13,
31
RadarCAN = 14, // used by NanoRadar and Hexsoon
32
};
33
};
34
35