MCU
Loading...
Searching...
No Matches
SABInterface.h
Go to the documentation of this file.
1#ifndef __SABINTERFACE_H__
2#define __SABINTERFACE_H__
3
4#include "hytech.h"
5#include "FlexCAN_T4.h"
7
9{
10private:
11public:
16
18 float rlLoadCellScale,
19 float rlLoadCellOffset,
20 float rrLoadCellScale,
21 float rrLoadCellOffset,
22 float pot3Scale,
23 float pot3Offset,
24 float pot4Scale,
25 float pot4Offset
26 )
27 {
28 rlLoadCell.scale = rlLoadCellScale;
29 rlLoadCell.offset = rlLoadCellOffset;
30
31 rrLoadCell.scale = rrLoadCellScale;
32 rrLoadCell.offset = rrLoadCellOffset;
33
34 pot3.scale = pot3Scale;
35 pot3.offset = pot3Offset;
36
37 pot4.scale = pot4Scale;
38 pot4.offset = pot4Offset;
39 };
40
42 float rlLoadCellScale,
43 float rlLoadCellOffset,
44 float rrLoadCellScale,
45 float rrLoadCellOffset
46 ) : SABInterface (rlLoadCellScale, rlLoadCellOffset, rrLoadCellScale, rrLoadCellOffset, 1.0, 0.0, 1.0, 0.0) {};
47
48 void retrieve_pots_and_load_cells_CAN(CAN_message_t &recvd_msg);
49};
50
51#endif /* __SABINTERFACE_H__ */
SABInterface(float rlLoadCellScale, float rlLoadCellOffset, float rrLoadCellScale, float rrLoadCellOffset, float pot3Scale, float pot3Offset, float pot4Scale, float pot4Offset)
Definition: SABInterface.h:17
AnalogChannel rlLoadCell
Definition: SABInterface.h:12
SABInterface(float rlLoadCellScale, float rlLoadCellOffset, float rrLoadCellScale, float rrLoadCellOffset)
Definition: SABInterface.h:41
AnalogChannel pot4
Definition: SABInterface.h:15
void retrieve_pots_and_load_cells_CAN(CAN_message_t &recvd_msg)
Definition: SABInterface.cpp:3
AnalogChannel pot3
Definition: SABInterface.h:14
AnalogChannel rrLoadCell
Definition: SABInterface.h:13