1/*
2 * File: ObstacleDetection_demo_ec.h
3 *
4 * Code generated for Simulink model 'ObstacleDetection_demo_ec'.
5 *
6 * Model version : 1.27
7 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
8 * C/C++ source code generated on : Tue Oct 29 09:31:30 2019
9 *
10 * Target selection: ert.tlc
11 * Embedded hardware selection: Intel->x86-64 (Windows64)
12 * Code generation objectives:
13 * 1. Execution efficiency
14 * 2. RAM efficiency
15 * Validation result: Not run
16 */
17
18#ifndef RTW_HEADER_ObstacleDetection_demo_ec_h_
19#define RTW_HEADER_ObstacleDetection_demo_ec_h_
20#include "rtwtypes.h"
21#ifndef ObstacleDetection_demo_ec_COMMON_INCLUDES_
22# define ObstacleDetection_demo_ec_COMMON_INCLUDES_
23#include "rtwtypes.h"
24#endif /* ObstacleDetection_demo_ec_COMMON_INCLUDES_ */
25
26/* Forward declaration for rtModel */
27typedef struct tag_RTM_ObstacleDetection_dem_T RT_MODEL_ObstacleDetection_de_T;
28
29/* Block signals and states (default storage) for model 'ObstacleDetection_demo_ec' */
30typedef struct {
31 boolean_T Memory_PreviousInput; /* '<S4>/Memory' */
32} DW_ObstacleDetection_demo_e_f_T;
33
34/* Parameters (default storage) */
35struct P_ObstacleDetection_demo_ec_T_ {
36 boolean_T S_R_Flip_Flop_initial_condition;/* Mask Parameter: S_R_Flip_Flop_initial_condition
37 * Referenced by: '<S4>/Memory'
38 */
39 boolean_T Logic_table[16]; /* Computed Parameter: Logic_table
40 * Referenced by: '<S4>/Logic'
41 */
42};
43
44/* Parameters (default storage) */
45typedef struct P_ObstacleDetection_demo_ec_T_ P_ObstacleDetection_demo_ec_T;
46
47/* Real-time Model Data Structure */
48struct tag_RTM_ObstacleDetection_dem_T {
49 const char_T **errorStatus;
50};
51
52typedef struct {
53 DW_ObstacleDetection_demo_e_f_T rtdw;
54 RT_MODEL_ObstacleDetection_de_T rtm;
55} MdlrefDW_ObstacleDetection_de_T;
56
57/* Model block global parameters (default storage) */
58extern real_T rtP_DIST_OBSTACLE_STOP; /* Variable: DIST_OBSTACLE_STOP
59 * Referenced by: '<S2>/Constant1'
60 */
61extern real_T rtP_REMOTE_DRIVE_REV; /* Variable: REMOTE_DRIVE_REV
62 * Referenced by: '<S2>/Constant3'
63 */
64extern uint8_T rtP_DIST_OBSTACLE_EVADE;/* Variable: DIST_OBSTACLE_EVADE
65 * Referenced by: '<S2>/Constant2'
66 */
67extern P_ObstacleDetection_demo_ec_T ObstacleDetection_demo_ec_P;
68
69/* Model reference registration function */
70extern void ObstacleDetection_de_initialize(const char_T **rt_errorStatus,
71 RT_MODEL_ObstacleDetection_de_T *const ObstacleDetection_demo_ec_M);
72extern void ObstacleDetection_demo_ec_Init(DW_ObstacleDetection_demo_e_f_T
73 *localDW);
74extern void ObstacleDetection_demo_ec(const int8_T *rtu_remoteCtrlCmd, const
75 int8_T *rtu_usSensorFront, boolean_T *rty_emergencyStopObstacle, boolean_T
76 *rty_obstacleDetection, DW_ObstacleDetection_demo_e_f_T *localDW);
77
78/*-
79 * The generated code includes comments that allow you to trace directly
80 * back to the appropriate location in the model. The basic format
81 * is <system>/block_name, where system is the system number (uniquely
82 * assigned by Simulink) and block_name is the name of the block.
83 *
84 * Use the MATLAB hilite_system command to trace the generated code back
85 * to the model. For example,
86 *
87 * hilite_system('<S3>') - opens system 3
88 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
89 *
90 * Here is the system hierarchy for this model
91 *
92 * '<Root>' : 'ObstacleDetection_demo_ec'
93 * '<S1>' : 'ObstacleDetection_demo_ec/Model_Info'
94 * '<S2>' : 'ObstacleDetection_demo_ec/ObstacleDetection'
95 * '<S3>' : 'ObstacleDetection_demo_ec/ObstacleDetection/Model_Info'
96 * '<S4>' : 'ObstacleDetection_demo_ec/ObstacleDetection/S_R_Flip_Flop'
97 */
98#endif /* RTW_HEADER_ObstacleDetection_demo_ec_h_ */
99
100/*
101 * File trailer for generated code.
102 *
103 * [EOF]
104 */
105