This document describes the naming rule for user interface layer which includes parameters in initialize files and variable names in CSV log files. Since users directly access to the values, we need to care the readability more than the name of variables in codes.
- The names has following structure
- Scalar values:
[name]_[unit] - Vector or matrix values:
[name]_[frame]_[unit] - If the value has no unit, we can remove the
[unit]information.
- Scalar values:
- Variable name field:
[name]- It should be written as
snake_case. - Single character abbreviations are prohibited.
- Examples:
q = quaternion,v = velocityare prohibited.
- Examples:
- We do not recommend to use unfamiliar abbreviations.
- Examples:
pos = position,quat = quaternionare not recommended.
- Examples:
- Available abbreviations are decided during review processes.
- It should be written as
- Unit field:
[unit]- For readability, we recommend to use general unit description in the SI unit system, and we do not need to follow the
snake_casedescription in the unit field. - Examples:
Nm,rad/s,m/s2,degC
- For readability, we recommend to use general unit description in the SI unit system, and we do not need to follow the
- Frames
- For readability, we recommend to use the following abbreviation in the unit field. When new abbreviation is needed for the frame description, please add it into the following list.
i: Inertial frameb: Body fixed framec: Component fixed frameecef: Earth Centered Earth Fixed framelvlh: Local Vertical Local Horizontalrtn: Radial-Transverse-Normal
- To express the frame conversion, we can use
i2basframe conversion from the inertial frame to the body-fixed frame. - Note: The definition of origin of inertial frame is defined by the user settings. So sometimes we cannot use
eci = Earth Centered Inertial. - The axis of the frame is described as
i_x, i_y, i_z.
- For readability, we recommend to use the following abbreviation in the unit field. When new abbreviation is needed for the frame description, please add it into the following list.
- S2E uses
INIformat initialize files. INIhasSectionandkeyfields as follows[SECTION] key = value- The
SECTIONfield should be written asSNAKE_CASE - The
keyfields should be written to follow the aboveCommon rules. - The axis of the frame is described as
(0), (1), (2), and they meanX, Y, Z- For quaternion
(0), (1), (2), (3)is used asX, Y, Z, W. - TODO: Modify to use
X, Y, Zdirectory?
- For quaternion
- S2E generates
CSVformat log files. - The output file has the
variable namesin the first rows. - The
variable namesshould be written to follow the aboveCommon rules. - The unit is written in the brackets
[ ]as[N]