You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef SCENARIOPARAMS_H
|
|
|
|
#define SCENARIOPARAMS_H
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
struct field_t
|
|
|
|
{
|
|
|
|
T value;
|
|
|
|
bool isUpdated;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct ScenGenOutput_t
|
|
|
|
{
|
|
|
|
field_t<bool> linear;
|
|
|
|
field_t<bool> virtualConvex;
|
|
|
|
field_t<double> depth;
|
|
|
|
field_t<double> probeRadius;
|
|
|
|
field_t<double> fieldOfView;
|
|
|
|
field_t<double> startDepth;
|
|
|
|
field_t<int> rxLineNo;
|
|
|
|
field_t<int> rxFocusPointNo;
|
|
|
|
field_t<double> rxLineDaz;
|
|
|
|
field_t<double> rxPointDax;
|
|
|
|
field_t<double> vcMaxTheta;
|
|
|
|
field_t<double> angle;
|
|
|
|
field_t<double> steering;
|
|
|
|
field_t<int> outputWidth;
|
|
|
|
field_t<int> outputHeight;
|
|
|
|
field_t<double> rejectThreshold;
|
|
|
|
}ScenGenOutput_t;
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
void update_field(field_t<T> *t, T value)
|
|
|
|
{
|
|
|
|
t->value = value;
|
|
|
|
t->isUpdated = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SCENARIOPARAMS_H
|