![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
Provides MATLAB Coder helper functions to calculate the Euclidean norm of a vector. More...


Go to the source code of this file.
Functions | |
| double | b_norm (const double x[3]) |
| Calculates the Euclidean norm (magnitude) of a 3-element vector. | |
| double | c_norm (const double x[4]) |
| Calculates the Euclidean norm (magnitude) of a 4-element vector. | |
Provides MATLAB Coder helper functions to calculate the Euclidean norm of a vector.
This auto-generated helper file from MATLAB Coder provides C equivalents of MATLAB's norm() command. The functions calculate the Euclidean norm (also known as the L2-norm) of a vector, which corresponds to its magnitude or length.
The formula used is: 
These functions are used as low-level utilities within more complex control algorithms, such as the MEKF, for vector operations.
Definition in file norm.h.
| double b_norm | ( | const double | x[3] | ) |
Calculates the Euclidean norm (magnitude) of a 3-element vector.
| [in] | x | A 3-element array representing the input vector. |
Definition at line 21 of file norm.c.
Referenced by mekf().

| double c_norm | ( | const double | x[4] | ) |
Calculates the Euclidean norm (magnitude) of a 4-element vector.
| [in] | x | A 4-element array representing the input vector. |
Definition at line 61 of file norm.c.
Referenced by mekf().
