Basic usage of the ConFM module to read values from configuration files.
bool dcm2quat(double out[4], double* in, int stride);
int main(int argc, char* argv[]) {
return 1;
}
double dragCoef;
return 1;
}
return 1;
}
return 1;
}
double attQ[4];
if (!dcm2quat(attQ, i2b->
values, 3)) {
return 1;
}
osfiLoggerInfo(
"Initial attitude: [%f, %f, %f, %f]", attQ[0], attQ[1], attQ[2], attQ[3]);
return 0;
}
bool dcm2quat(double out[4], double* in, int stride) {
return false;
}
OSFI-C public API header.
void osfiConFmCfgFileClose(osfi_paramreader_t *pr)
Closes the configuration file pointed by pr and releases all resources tied to it.
struct osfi_paramreader osfi_paramreader_t
Opaque type representing an open configuration file.
Definition: OSFIC.h:211
#define osfiConFmParamValue(dest, pr, param)
Value getter for non-ARRAY parameters.
Definition: OSFIC.h:364
enum osfi_confm_val_res osfiConFmValidateSchema(osfi_paramreader_t *pr, const char *schemaFile)
Performs validation of the given configuration file against a schema document.
osfi_paramreader_t * osfiConFmCfgFileOpen(const char *path)
Parses the configuration file at path and returns a handle to it.
@ OSFI_CONFM_VAL_PASSED
Definition: OSFIC.h:219
void osfiLoggerInfo(const char *format,...)
void osfiLoggerError(const char *format,...)
Matrix of floating point values, with dimension sizes and contents.
Definition: OSFIC.h:296
double values[]
Data in row-major order, up to rows*cols-1.
Definition: OSFIC.h:296
int cols
Number of columns, never negative.
Definition: OSFIC.h:296
int rows
Number of rows, never negative.
Definition: OSFIC.h:296
String allocated by OSFI.
Definition: OSFIC.h:257
char value[]
String data, null terminated.
Definition: OSFIC.h:257