#include <SABInterface.h>
|
| | SABInterface (float rlLoadCellScale, float rlLoadCellOffset, float rrLoadCellScale, float rrLoadCellOffset, float pot3Scale, float pot3Offset, float pot4Scale, float pot4Offset) |
| |
| | SABInterface (float rlLoadCellScale, float rlLoadCellOffset, float rrLoadCellScale, float rrLoadCellOffset) |
| |
| void | retrieve_pots_and_load_cells_CAN (CAN_message_t &recvd_msg) |
| |
Definition at line 8 of file SABInterface.h.
◆ SABInterface() [1/2]
| SABInterface::SABInterface |
( |
float |
rlLoadCellScale, |
|
|
float |
rlLoadCellOffset, |
|
|
float |
rrLoadCellScale, |
|
|
float |
rrLoadCellOffset, |
|
|
float |
pot3Scale, |
|
|
float |
pot3Offset, |
|
|
float |
pot4Scale, |
|
|
float |
pot4Offset |
|
) |
| |
|
inline |
Definition at line 17 of file SABInterface.h.
27 {
30
33
34 pot3.scale = pot3Scale;
35 pot3.offset = pot3Offset;
36
37 pot4.scale = pot4Scale;
38 pot4.offset = pot4Offset;
39 };
◆ SABInterface() [2/2]
| SABInterface::SABInterface |
( |
float |
rlLoadCellScale, |
|
|
float |
rlLoadCellOffset, |
|
|
float |
rrLoadCellScale, |
|
|
float |
rrLoadCellOffset |
|
) |
| |
|
inline |
Definition at line 41 of file SABInterface.h.
46 :
SABInterface (rlLoadCellScale, rlLoadCellOffset, rrLoadCellScale, rrLoadCellOffset, 1.0, 0.0, 1.0, 0.0) {};
◆ retrieve_pots_and_load_cells_CAN()
| void SABInterface::retrieve_pots_and_load_cells_CAN |
( |
CAN_message_t & |
recvd_msg | ) |
|
Definition at line 3 of file SABInterface.cpp.
4{
5 SAB_SUSPENSION_t sab_data;
6 Unpack_SAB_SUSPENSION_hytech(&sab_data, recvd_msg.buf, recvd_msg.len);
7
10 pot3.lastSample = sab_data.potentiometer_rl;
11 pot4.lastSample = sab_data.potentiometer_rr;
12
17}
AnalogConversion_s convert()
Calculate sensor output and whether result is in sensor's defined bounds. DOES NOT SAMPLE.
◆ pot3
◆ pot4
◆ rlLoadCell
◆ rrLoadCell
The documentation for this class was generated from the following files: