truck-code
include
control
long_utils.h
Go to the documentation of this file.
1
// *
3
// * long_utils.h
4
// *
5
// * This file contains utility structures and loose methods used during the
6
// * longitudonal control process.
7
// *
8
// * @author Abdul Rahman Kreidieh
9
// * @version 1.0.0
10
// * @date July 11, 2018
11
// */
12
//
13
//#ifndef SRC_CONTROL_LONG_UTILS_H_
14
//#define SRC_CONTROL_LONG_UTILS_H_
15
//
16
//
18
// *
19
// * long_vehicle_state includes description of a vehicle's current state
20
// * as read from the database, or transmitted by vehicle-to-vehicle
21
// * communication from another vehicle.
22
// */
23
//typedef struct {
24
// /* long_input_typ data */
25
// float acc_pedal_voltage; // blank
26
// float fb_applied; // blank
27
// float rb_applied; // blank
28
// float fb_monitor; // blank
29
// float rb_monitor; // blank
30
// float fb_axle; // blank
31
// float mb_axle; // blank
32
// float rb_axle; // blank
33
// float trans_retarder_voltage; // blank
34
//
35
// /* lat_input_sensors_typ data */
36
// float long_accel; // blank
37
// float lat_accel; // blank
38
//
39
// /* j1939 bus data */
40
// float vehicle_speed; // from engine
41
// float engine_speed; // from engine
42
// float engine_torque; // from engine
43
// float accelerator_pedal_position; // from engine
44
// int engine_mode; // from engine
45
// float retarder_torque; // from engine retarder
46
// int retarder_mode; // from engine retarder
47
// unsigned char eng_rtdr_src; // from engine retarder
48
// int ebs_brake_switch_status; // from EBS
49
// int abs_ebs_amber_warning_state; // from EBS
50
// float brake_demand; // from EBS
51
// float brake_pedal_position; // from EBS
52
// float input_shaft_speed; // from transmission
53
// float output_shaft_speed; // from transmission
54
// int shift_in_progress; // from transmission
55
// int lockup_engaged; // from transmission
56
// int driveline_engaged; // from transmission
57
// int current_gear; // from transmission
58
// int selected_gear; // from transmission
59
// float actual_gear_ratio; // from transmission
60
// float fuel_rate; // from engine
61
// int fan_drive_state; // from engine
62
// float nominal_friction_torque; // from engine
63
// float actual_retarder_percent_torque; //
64
// float boost_pressure; //
65
// float estimated_percent_fan_speed; //
66
// float percent_load_current_speed; //
67
// float fuel_flow_rate1; //
68
// float fuel_flow_rate2; //
69
// float fuel_valve1_position; //
70
// float fuel_valve2_position; //
71
// float exhaust_gas_pressure; //
72
// float rack_position; //
73
// float natural_gas_mass_flow; //
74
// float instantaneous_brake_power; //
75
// float front_axle_speed; // from ebc2 on D1
76
// float front_left_wheel_relative; // from ebc2 on D1
77
// float front_right_wheel_relative; // from ebc2 on D1
78
// float rear1_left_wheel_relative; // from ebc2 on D1
79
// float rear1_right_wheel_relative; // from ebc2 on D1
80
// float trans_retarder_value; //
81
// float trans_retarder_mode; //
82
// float coolant_load_increase; //
83
// unsigned char trans_retarder_source; //
84
//
85
// /* other data streams */
86
// evt300_radar_typ evt300; // blank
87
// long_lidarA_typ lidarA; // blank
88
// long_lidarB_typ lidarB; // blank
89
// mdl_lidar_typ mdl_lidar; // blank
90
// path_gps_point_t self_gps; // self GPS information
91
// veh_comm_packet_t lead_trk; // packet from LEAD vehicle
92
// veh_comm_packet_t second_trk; // packet from SECOND vehicle
93
// veh_comm_packet_t third_trk; // packet from THIRD vehicle
94
// long_dig_in_typ dig_in; // switches digital in
95
//} long_vehicle_state;
96
//
97
//
98
//#endif /* SRC_CONTROL_LONG_UTILS_H_ */
Generated by
1.8.13