MCU
Loading...
Searching...
No Matches
SABInterface.cpp
Go to the documentation of this file.
1#include "SABInterface.h"
2
4{
5 SAB_SUSPENSION_t sab_data;
6 Unpack_SAB_SUSPENSION_hytech(&sab_data, recvd_msg.buf, recvd_msg.len);
7
8 rlLoadCell.lastSample = sab_data.load_cell_rl;
9 rrLoadCell.lastSample = sab_data.load_cell_rr;
10 pot3.lastSample = sab_data.potentiometer_rl;
11 pot4.lastSample = sab_data.potentiometer_rr;
12
15 pot3.convert();
16 pot4.convert();
17}
AnalogConversion_s convert()
Calculate sensor output and whether result is in sensor's defined bounds. DOES NOT SAMPLE.
AnalogChannel rlLoadCell
Definition: SABInterface.h:12
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