![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
Provides MATLAB Coder helper functions to find indices of true values. More...


Go to the source code of this file.
Functions | |
| int | b_eml_find (const boolean_T x[5], int i_data[]) |
Finds the index of the last true element in a 5-element boolean array. | |
| int | eml_find (const boolean_T x[6], int i_data[]) |
Finds the index of the last true element in a 6-element boolean array. | |
Provides MATLAB Coder helper functions to find indices of true values.
This auto-generated helper file from MATLAB Coder provides C equivalents of the MATLAB find() command. The functions search a boolean array and return the index of the last element that is true.
These functions are used as low-level utilities by the cdEvaluation function to determine the correct indices for lookup table interpolation within the MPC controller.
Definition in file find.h.
| int b_eml_find | ( | const boolean_T | x[5], |
| int | i_data[] | ||
| ) |
Finds the index of the last true element in a 5-element boolean array.
| [in] | x | The 5-element boolean input array to search. |
| [out] | i_data | An output array where the found index will be stored. The index is 1-based, matching MATLAB's convention. |
Definition at line 21 of file find.c.
Referenced by cdEvaluation().

| int eml_find | ( | const boolean_T | x[6], |
| int | i_data[] | ||
| ) |
Finds the index of the last true element in a 6-element boolean array.
| [in] | x | The 6-element boolean input array to search. |
| [out] | i_data | An output array where the found index will be stored. The index is 1-based, matching MATLAB's convention. |
Definition at line 51 of file find.c.
Referenced by cdEvaluation().
