void CChangePasswordSession::CmdChangeComplete (CChangePasswordTask *pTask)

//	CmdChangeComplete
//
//	RPC call has returned

	{
	CString sError;
	if (pTask->GetResult(&sError) != NOERROR)
		{
		CUIHelper Helper(m_HI);
		Helper.CreateInputErrorMessage(this, m_rcInputError, CONSTLIT("Unable to Change Password"), sError);

		//	Re-enable buttons so user can continue;

		SetPropertyBool(ID_CTRL_PASSWORD, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD_NEW, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD_CONFIRM, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_MAIN_ACTION, PROP_ENABLED, true);

		return;
		}

	m_HI.ClosePopupSession();
	}
pylonDetection::pylonDetection(const tChar* __info) : cFilter(__info)
{
    targetPylon = Point2d(0,-1000);
//    pylonCertainty = 0;
    pylonLost = 0;
    sign = -1;

    turn_around = false;
    flip_sign = false;
    is_turning = false;

    type_sign  = -1;

    car_angle = 0.0;
    pylonDetectionCounter = 0;
    signDetectionCounter = 0;
    frameCounter = 0;
    SetPropertyStr("Color Calibration Parameters","/home/odroid/AADC/calibration_files/pylonCalibration.xml");
    SetPropertyBool("Color Calibration Parameters" NSSUBPROP_FILENAME, tTrue);
    SetPropertyStr("Color Calibration Parameters" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
    SetPropertyStr("Camera Calibration Parameters","/home/odroid/AADC/calibration_files/cameraParameters.xml");
    SetPropertyBool("Camera Calibration Parameters" NSSUBPROP_FILENAME, tTrue);
    SetPropertyStr("Camera Calibration Parameters" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
    SetPropertyInt("Debug Image",3);
    SetPropertyStr("Debug Image" NSSUBPROP_VALUELIST, "1@Threshold|2@Color|3@Model|4@Off|");

    SetPropertyInt("Speed turning",35);
    SetPropertyInt("Speed driving",35);
    SetPropertyFloat("Curvature Gain",1.0);
    SetPropertyFloat("Curvature Gain" NSSUBPROP_REQUIRED, tTrue);
    SetPropertyFloat("Angular Gain",2.0);
    SetPropertyFloat("Angular Gain" NSSUBPROP_REQUIRED, tTrue);
}
// -------------------------------------------------------------------------------------------------
LaneFilter::LaneFilter(const tChar* __info) {
// -------------------------------------------------------------------------------------------------
  cMemoryBlock::MemSet(&input_format_, 0, sizeof(input_format_));
  
  SetPropertyBool("debug", false);
  SetPropertyBool("headlights_enabled", true);
  SetPropertyInt("scan_rate", 50);
  SetPropertyFloat("lum_threshold", 100);
}
Exemple #4
0
cSensorAnalyzer::cSensorAnalyzer(const tChar* __info) : 
QObject(),
    cBaseQtFilter(__info)
{	
    SetPropertyStr("Directory for Sensorpresets" ,"");
    SetPropertyBool("Directory for Sensorpresets" NSSUBPROP_REQUIRED, tTrue);
    SetPropertyBool("Directory for Sensorpresets" NSSUBPROP_DIRECTORY, tTrue);
    SetPropertyStr("Directory for Sensorpresets" NSSUBPROP_DESCRIPTION, "Here you have to select the folder which contains the sensor preset files"); 
}
testPullOutFilter::testPullOutFilter(const tChar* __info) : 
QObject(),
cBaseQtFilter(__info)
{

    SetPropertyInt("Type",0);
    SetPropertyBool("Type" NSSUBPROP_REQUIRED, tTrue);
    SetPropertyBool("Type" NSSUBPROP_ISCHANGEABLE, tTrue);
    SetPropertyStr("Type" NSSUBPROP_DESCRIPTION, "pullOut type"); 

}
    cSteeringController::cSteeringController(const tChar* __info) : cFilter(__info), m_bDebugModeEnabled(tFalse)
{
    SetPropertyBool(SC_PROP_DEBUG_MODE, tFalse);
    SetPropertyStr(SC_PROP_DEBUG_MODE NSSUBPROP_DESCRIPTION, "If true debug infos are plotted to console");

    SetPropertyStr(SC_PROP_CONFIG_FILE,""); 
    SetPropertyBool(SC_PROP_CONFIG_FILE NSSUBPROP_FILENAME, tTrue); 
    SetPropertyStr(SC_PROP_CONFIG_FILE NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)"); 
    SetPropertyStr(SC_PROP_CONFIG_FILE NSSUBPROP_DESCRIPTION, "The XML to be loaded has to be set here"); 

}
void CLoginSession::CmdRegisterComplete (CRegisterUserTask *pTask)

//	CmdRegisterComplete
//
//	Registration task has returned.

	{
	CString sError;
	if (pTask->GetResult(&sError) != NOERROR)
		{
		CUIHelper Helper(m_HI);
		Helper.CreateInputErrorMessage(this, m_rcInputError, CONSTLIT("Unable to Register"), sError);

		//	Re-enable buttons so user can continue;

		SetPropertyBool(ID_CTRL_USERNAME, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD_CONFIRM, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_MAIN_ACTION, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_EMAIL, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_AUTO_SIGN_IN, PROP_ENABLED, true);
		SetPropertyBool(CMD_SWITCH_TO_LOGIN, PROP_ENABLED, true);
		SetPropertyBool(CMD_TOS, PROP_ENABLED, true);

		return;
		}

	//	Done

	CmdSuccess();
	}
void YawToSteer::InitializeProperties()
{
    SetPropertyFloat(STEERING_COMPANSATION_FACTOR_PROPERTY, compensationValue);
    SetPropertyBool(STEERING_COMPANSATION_FACTOR_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(STEERING_COMPANSATION_FACTOR_PROPERTY NSSUBPROP_DESCRIPTION, "P-Part");

    SetPropertyFloat(DEVIATION_THRESHOLD_PROPERTY, deviationThreshold);
    SetPropertyBool(DEVIATION_THRESHOLD_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(DEVIATION_THRESHOLD_PROPERTY NSSUBPROP_DESCRIPTION, "Threshold before steering");

    SetPropertyFloat(ABRUPT_VARIATION_THRESHOLD_PROPERTY, abruptVariationThreshold);
    SetPropertyBool(ABRUPT_VARIATION_THRESHOLD_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(ABRUPT_VARIATION_THRESHOLD_PROPERTY NSSUBPROP_DESCRIPTION, "Reinit if senderYaw suddenly changes above this value");
}
void ROI::InitializeProperties()
{
    hoodScanLineNumber = 4;
    roomScanLineNumber = 4;
    maxHoodDetectionCount = 5;
    isHoodDetectionEnabled = true;
    isRoomDetectionEnabled = true;
    rgbVideoManipulation = VIDEO_NONE;
    depthVideoManipulation = VIDEO_NONE;
    roomHeightManipulation = 0.85f;

    SetPropertyInt(HOOD_SCANLINE_NUMBER_PROPERTY, hoodScanLineNumber);
    SetPropertyBool(HOOD_SCANLINE_NUMBER_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(HOOD_SCANLINE_NUMBER_PROPERTY NSSUBPROP_DESCRIPTION, "Number of hood scanlines");
    SetPropertyInt(HOOD_SCANLINE_NUMBER_PROPERTY NSSUBPROP_MIN, 0);

    SetPropertyFloat(ROOM_HEIGHT_MANIPULATION_PROPERTY, roomHeightManipulation);
    SetPropertyBool(ROOM_HEIGHT_MANIPULATION_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(ROOM_HEIGHT_MANIPULATION_PROPERTY NSSUBPROP_DESCRIPTION, "Reduces the room height by the given percentage");
    SetPropertyFloat(ROOM_HEIGHT_MANIPULATION_PROPERTY NSSUBPROP_MIN, 0);
    SetPropertyFloat(ROOM_HEIGHT_MANIPULATION_PROPERTY NSSUBPROP_MAX, 1);

    SetPropertyInt(ROOM_SCANLINE_NUMBER_PROPERTY, roomScanLineNumber);
    SetPropertyBool(ROOM_SCANLINE_NUMBER_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(ROOM_SCANLINE_NUMBER_PROPERTY NSSUBPROP_DESCRIPTION, "Number of room scanlines");
    SetPropertyInt(ROOM_SCANLINE_NUMBER_PROPERTY NSSUBPROP_MIN, 0);

    SetPropertyInt(MAX_HOOD_DETECTION_COUNT_PROPERTY, maxHoodDetectionCount);
    SetPropertyBool(MAX_HOOD_DETECTION_COUNT_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(MAX_HOOD_DETECTION_COUNT_PROPERTY NSSUBPROP_DESCRIPTION, "Max hood detection dount");
    SetPropertyInt(MAX_HOOD_DETECTION_COUNT_PROPERTY NSSUBPROP_MIN, 0);

    SetPropertyBool(DETECT_HOOD_PROPERTY, isHoodDetectionEnabled);
    SetPropertyBool(DETECT_HOOD_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(DETECT_HOOD_PROPERTY NSSUBPROP_DESCRIPTION, "Detect hood");

    SetPropertyBool(DETECT_ROOM_PROPERTY, isRoomDetectionEnabled);
    SetPropertyBool(DETECT_ROOM_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(DETECT_ROOM_PROPERTY NSSUBPROP_DESCRIPTION, "Detect room");

    SetPropertyInt(RGB_VIDEO_MANIPULATION_PROPERTY, rgbVideoManipulation);
    SetPropertyBool(RGB_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(RGB_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_VALUELIST, "1@None|2@Crop|3@Rect");
    SetPropertyStr(RGB_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_DESCRIPTION, "Defines method which is used to manipulate the RGB image");

    SetPropertyInt(DEPTH_VIDEO_MANIPULATION_PROPERTY, depthVideoManipulation);
    SetPropertyBool(DEPTH_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(DEPTH_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_VALUELIST, "1@None|2@Crop|3@Rect");
    SetPropertyStr(DEPTH_VIDEO_MANIPULATION_PROPERTY NSSUBPROP_DESCRIPTION, "Defines method which is used to manipulate the Depth image");
}
StateControlManagementSlim::StateControlManagementSlim(const tChar* __info) : cAsyncDataTriggeredFilter(__info), m_bDebugModeEnabled(tFalse)
{
    SetPropertyBool("Debug Output to Console",tFalse);
    SetPropertyStr("Debug Output to Console" NSSUBPROP_DESCRIPTION, "If enabled additional debug information is printed to the console (Warning: decreases performance)"); 

    SetPropertyBool("Print Structure to Console",tFalse);
    SetPropertyStr("Print Structure to Console" NSSUBPROP_DESCRIPTION, "If enabled the structure defined by xml-file is printed to the console (Warning: decreases performance)");


    SetPropertyStr("Configuration File For StateControlManagement","../../../../utilities/SCM_Structures/SCM_Structure_CURRENT.xml");
    SetPropertyBool("Configuration File For StateControlManagement" NSSUBPROP_FILENAME, tTrue);
    SetPropertyStr("Configuration File For StateControlManagement" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
    SetPropertyStr("Configuration File For StateControlManagement" NSSUBPROP_DESCRIPTION, "The XML defining the structure that is to be loaded has to be set here");

}
cQrPlayer::cQrPlayer(const tChar* __info):cFilter(__info)
{
	m_bConsoleOutputEnabled = false;
	SetPropertyBool("Output to Console",              m_bConsoleOutputEnabled);
    // configure the reader
    m_qrScanner.set_config(ZBAR_QRCODE, ZBAR_CFG_ENABLE, 1);    
}
cJuryTransmitter::cJuryTransmitter(const tChar* __info) : 
    QObject(),
    cBaseQtFilter(__info),
    m_bDebugModeEnabled(false),
    m_last_entryId(-1)
{
    m_last_timestamp=0,
            m_last_entryId=0,
            SetPropertyBool("Debug Output to Console",false);

    SetPropertyInt("Send time interval in sec",1);

    SetPropertyStr("ManeuverFile", "");
    SetPropertyBool("ManeuverFile" NSSUBPROP_FILENAME, tTrue);
    SetPropertyStr("ManeuverFile" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
}
CarFollower::CarFollower(const tChar *info) : cFilter(info),m_hTimer(NULL),logger(OID_SR_CARFOLLOWER)
{
	m_firstTime = tTrue;


	SetPropertyInt(PROP_CYCLETIME, 500);
	SetPropertyBool(PROP_CYCLETIME NSSUBPROP_ISCHANGEABLE, tTrue);
	SetPropertyStr(PROP_CYCLETIME NSSUBPROP_DESCRIPTION, "The control step for the local sequence timer.");
	SetPropertyFloat(PROP_SPACING, 0.5);
	SetPropertyBool(PROP_SPACING NSSUBPROP_ISCHANGEABLE, tTrue);
	SetPropertyStr(PROP_SPACING NSSUBPROP_DESCRIPTION, "The spacing maximum between cars");
	SetPropertyFloat(PROP_SPEEDSPACING, 1.0);
	SetPropertyBool(PROP_SPEEDSPACING NSSUBPROP_ISCHANGEABLE, tTrue);
	SetPropertyStr(PROP_SPEEDSPACING NSSUBPROP_DESCRIPTION, "The speed to compensate distance between cars");

}
void TemporalImage::InitializeProperties()
{
    bufferSize = 5;
    method = METHOD_MEAN;

    SetPropertyInt(BUFFER_SIZE_PROPERTY, bufferSize);
    SetPropertyBool(BUFFER_SIZE_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(BUFFER_SIZE_PROPERTY NSSUBPROP_DESCRIPTION, "Buffer Size");
    SetPropertyInt(BUFFER_SIZE_PROPERTY NSSUBPROP_MIN, 0);
    SetPropertyInt(BUFFER_SIZE_PROPERTY NSSUBPROP_MAX, 255);

    SetPropertyInt(METHOD_PROPERTY, method);
    SetPropertyBool(METHOD_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(METHOD_PROPERTY NSSUBPROP_VALUELIST, "1@Mean|2@And|3@Or");
    SetPropertyStr(METHOD_PROPERTY NSSUBPROP_DESCRIPTION, "Defines method which is used to create the output image");
}
void CChangePasswordSession::CmdOK (void)

//	CmdOK
//
//	Submit password change request

	{
	const CVisualPalette &VI = m_HI.GetVisuals();
	CUIHelper Helper(m_HI);

	if (!IsElementEnabled(ID_CTRL_MAIN_ACTION))
		return;

	//	Get the fields

	CString sOldPassword = GetPropertyString(ID_CTRL_PASSWORD, PROP_TEXT);
	CString sNewPassword = GetPropertyString(ID_CTRL_PASSWORD_NEW, PROP_TEXT);
	CString sConfirmPassword = GetPropertyString(ID_CTRL_PASSWORD_CONFIRM, PROP_TEXT);

	//	Make sure passwords match

	if (!strEquals(sNewPassword, sConfirmPassword))
		{
		Helper.CreateInputErrorMessage(this, m_rcInputError, CONSTLIT("New Password Does Not Match"), CONSTLIT("The new password you entered does not match the confirmation password."));
		return;
		}

	//	Validate password complexity

	CString sError;
	if (!CHexarc::ValidatePasswordComplexity(sNewPassword, &sError))
		{
		Helper.CreateInputErrorMessage(this, m_rcInputError, CONSTLIT("Password Is Too Easy"), sError);
		return;
		}

	//	Register the name

	m_HI.AddBackgroundTask(new CChangePasswordTask(m_HI, m_Service, m_Service.GetUsername(), sOldPassword, sNewPassword), this, CMD_CHANGE_COMPLETE);

	//	Disable controls

	SetPropertyBool(ID_CTRL_PASSWORD, PROP_ENABLED, false);
	SetPropertyBool(ID_CTRL_PASSWORD_NEW, PROP_ENABLED, false);
	SetPropertyBool(ID_CTRL_PASSWORD_CONFIRM, PROP_ENABLED, false);
	SetPropertyBool(ID_CTRL_MAIN_ACTION, PROP_ENABLED, false);
	}
Exemple #16
0
TimerFilter::TimerFilter(const tChar* __info):cAsyncDataTriggeredFilter(__info), m_bDebugModeEnabled(tFalse), m_handleTimer(NULL)
{
	SetPropertyBool("Debug Output to Console",tFalse);
	SetPropertyStr("Debug Output to Console" NSSUBPROP_DESCRIPTION, "If enabled additional debug information is printed to the console (Warning: decreases performance)");
	b_runningState = tFalse;
	b_runningState_noreset = tFalse;

}
tVoid CurveDetector::initProperties()
{
    // Canny threshold 1
    this->thresholdCanny1 = 100;
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_1, this->thresholdCanny1);
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_1 NSSUBPROP_MINIMUM, 0);
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_1 NSSUBPROP_MAXIMUM, 255);
    SetPropertyBool(PROP_NAME_CANNY_THRESHOLD_1 NSSUBPROP_REQUIRED, tTrue);
    SetPropertyBool(PROP_NAME_CANNY_THRESHOLD_1 NSSUBPROP_ISCHANGEABLE, tTrue);

    // Canny threshold 2
    this->thresholdCanny2 = 150;
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_2, this->thresholdCanny2);
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_2 NSSUBPROP_MINIMUM, 0);
    SetPropertyInt(PROP_NAME_CANNY_THRESHOLD_2 NSSUBPROP_MAXIMUM, 255);
    SetPropertyBool(PROP_NAME_CANNY_THRESHOLD_2 NSSUBPROP_REQUIRED, tTrue);
    SetPropertyBool(PROP_NAME_CANNY_THRESHOLD_2 NSSUBPROP_ISCHANGEABLE, tTrue);
}
FunctionDriver::FunctionDriver(const tChar *__info) : cFilter(__info), logger(FILTER_NAME)
{
    speed = 2;
    sinWidth = 10;
    sinLength = 15;

    SetPropertyFloat(SPEED_PROPERTY, speed);
    SetPropertyBool(SPEED_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(SPEED_PROPERTY NSSUBPROP_DESCRIPTION, "Speed in m/s.");

    SetPropertyFloat(SINWIDTH_PROPERTY, sinWidth);
    SetPropertyBool(SINWIDTH_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(SINWIDTH_PROPERTY NSSUBPROP_DESCRIPTION, "Breite");

    SetPropertyFloat(SINLENGTH_PROPERTY, sinLength);
    SetPropertyBool(SINLENGTH_PROPERTY NSSUBPROP_REQUIRED, tTrue);
    SetPropertyStr(SINLENGTH_PROPERTY NSSUBPROP_DESCRIPTION, "Weite");
}
// -------------------------------------------------------------------------------------------------
SensorPackageFilter::SensorPackageFilter(const tChar* __info)
  : ir_l_fc_(BUFFER_SIZE), ir_l_fl_(BUFFER_SIZE), ir_l_fr_(BUFFER_SIZE), ir_s_fc_(BUFFER_SIZE),
    ir_s_fl_(BUFFER_SIZE), ir_s_fr_(BUFFER_SIZE), ir_s_l_(BUFFER_SIZE), ir_s_r_(BUFFER_SIZE),
    ir_s_rc_(BUFFER_SIZE), us_f_l_(BUFFER_SIZE), us_f_r_(BUFFER_SIZE), us_r_l_(BUFFER_SIZE),
    us_r_r_(BUFFER_SIZE) {
// -------------------------------------------------------------------------------------------------
  SetPropertyBool("debug", false);
  x_ = 0b1111111111111;
}
void StateControllerNew::InitializeProperties()
{
    controllerMode = tControllerMode::Manual;

    SetPropertyInt(CONTROLLER_MODE_PROPERTY, controllerMode);
    SetPropertyStr(CONTROLLER_MODE_PROPERTY NSSUBPROP_VALUELIST, "0@Manual|1@Jury");
    SetPropertyStr(CONTROLLER_MODE_PROPERTY NSSUBPROP_DESCRIPTION, "Defines which mode should be used.");

    SetPropertyInt(MANEUVER_PROPERTY, tManeuver::M_CROSSING_STRAIGHT);
    SetPropertyBool(MANEUVER_PROPERTY NSSUBPROP_ISCHANGEABLE, tTrue);
    SetPropertyStr(MANEUVER_PROPERTY NSSUBPROP_VALUELIST,
                   "100@Straight|101@Left|102@Right|103@Park_Cross|104@Park_Parallel|105@Pull_Out_Left|106@Pull_Out_Right|-100@Unknown");
    SetPropertyStr(MANEUVER_PROPERTY NSSUBPROP_DESCRIPTION, "Defines which Maneuver should be send in manual mode");

    SetPropertyInt(STATE_PROPERTY, carState);
    SetPropertyBool(STATE_PROPERTY NSSUBPROP_ISCHANGEABLE, tTrue);
    SetPropertyStr(STATE_PROPERTY NSSUBPROP_VALUELIST, "0@StartUp|1@GetReady|2@Ready|3@Running|4@Completed|5@Error");
    SetPropertyStr(STATE_PROPERTY NSSUBPROP_DESCRIPTION, "Defines which State should be send in manual mode");
}
Exemple #21
0
cXtionCamera::cXtionCamera(const tChar* __info) : cFilter(__info) 
{
    m_GrabberTimeoutMs=1000;
    
    SetPropertyStr("Configuration File",""); 
    SetPropertyBool("Configuration File" NSSUBPROP_FILENAME, tTrue); 
    SetPropertyStr("Configuration File" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");   
    SetPropertyStr("Configuration File" NSSUBPROP_DESCRIPTION, "The configuration file for the xtion device");

}
Exemple #22
0
cDriverModule::cDriverModule(const tChar* __info) : 
QObject(),
    cBaseQtFilter(__info),
    m_bDebugModeEnabled(false),
    m_bIDsDriverStructSet(tFalse),
    m_bIDsJuryStructSet(tFalse)
{
    SetPropertyBool("Debug Output to Console",false);
    
}
cParkingspotDetection::cParkingspotDetection(const tChar* __info):cFilter(__info)
{
	/****************** Start of Debug ***************/
	SetPropertyBool(AF_PROP_SHOW_LOG,tTrue);
	SetPropertyStr(AF_PROP_SHOW_LOG NSSUBPROP_DESCRIPTION, "If true show log values");

	/****************** Distance Factor ***************/
	SetPropertyFloat(AF_PROP_DIST_FACTOR,0.16536);
	SetPropertyStr(AF_PROP_DIST_FACTOR NSSUBPROP_DESCRIPTION, "Factor to increase the return distance");

}
Emergency::Emergency(const char *__info) : cFilter(__info)
{
    this->m_nLastMSTime = 0;
    this->m_nEmergencyDistanceFront = 8;
    this->m_nEmergencyDistanceRear = 8;
    this->m_nEmergencyDistanceFrontUss = 8;
    this->m_bEmergencybreak = true;

    this->steerAngle = 0;
    this->initSteerAngle = true;

    SetPropertyInt(PROPERTY_EMERGENCY_DISTANCE_FRONT, m_nEmergencyDistanceFront);
    SetPropertyBool(PROPERTY_EMERGENCY_DISTANCE_FRONT NSSUBPROP_ISCHANGEABLE, tTrue);
    SetPropertyInt(PROPERTY_EMERGENCY_DISTANCE_REAR, m_nEmergencyDistanceRear);
    SetPropertyBool(PROPERTY_EMERGENCY_DISTANCE_REAR NSSUBPROP_ISCHANGEABLE, tTrue);
    SetPropertyInt(PROPERTY_EMERGENCY_DISTANCE_FRONT_USS, m_nEmergencyDistanceFrontUss);
    SetPropertyBool(PROPERTY_EMERGENCY_DISTANCE_FRONT_USS NSSUBPROP_ISCHANGEABLE, tTrue);

    this->m_size=0;
}
Exemple #25
0
LPFFilter::LPFFilter(const tChar* __info) :cFilter(__info)
{
	//write values with zero
	inputSample = 0;
        for (int i = 0 ; i<1000 ; i++) { buffer[i] = 0; }
        pointer = 0;
	outputSample = 0;

        SetPropertyInt("N", 4);
	SetPropertyBool("N" NSSUBPROP_ISCHANGEABLE, tTrue);
	
}
Exemple #26
0
cJuryModule::cJuryModule(const tChar* __info) : 
QObject(),
    cBaseQtFilter(__info),
    m_bDebugModeEnabled(tFalse),
    m_ilastEntryId(-1)
{
    m_last_timestamp=0,
        m_ilastEntryId=0,

        SetPropertyBool("Debug Output to Console",tFalse);
    SetPropertyStr("Debug Output to Console" NSSUBPROP_DESCRIPTION, "If enabled additional debug information is printed to the console (Warning: decreases performance)"); 


    SetPropertyInt("Send time interval in sec",1);    
    SetPropertyStr("Send time interval in sec" NSSUBPROP_DESCRIPTION, "Specifies the time between two send media samples in sec"); 

    SetPropertyStr("ManeuverFile", "");
    SetPropertyBool("ManeuverFile" NSSUBPROP_FILENAME, tTrue); 
    SetPropertyStr("ManeuverFile" NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");    
    SetPropertyStr("ManeuverFile" NSSUBPROP_DESCRIPTION, "Here you have to set the maneuver file of type xml to be used in this filter. For further specification refer to the Manueal"); 
}
void CLoginSession::CmdSignInComplete (CSignInUserTask *pTask)

//	CmdSignInComplete
//
//	Sign in task has returned.

	{
	CString sError;
	if (pTask->GetResult(&sError) != NOERROR)
		{
		CUIHelper Helper(m_HI);
		Helper.CreateInputErrorMessage(this, m_rcInputError, CONSTLIT("Unable to Sign In"), sError);

		//	Re-enable buttons so user can continue;

		SetPropertyBool(ID_CTRL_USERNAME, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_MAIN_ACTION, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_AUTO_SIGN_IN, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_REGISTER, PROP_ENABLED, true);
		SetPropertyBool(ID_CTRL_PASSWORD_RESET, PROP_ENABLED, true);

		return;
		}

	//	Done

	CmdSuccess();
	}
Exemple #28
0
UltrasonicACC::UltrasonicACC(const tChar* __info) : cFilter(__info) {


	/* create the filter properties */
	SetPropertyStr(USACC_CONFIG_DRIVING_FILE, "../../../../utilities/UltrasonicACC/UltrasonicACC.xml");
	SetPropertyBool(USACC_CONFIG_DRIVING_FILE NSSUBPROP_FILENAME, tTrue);
	SetPropertyStr(USACC_CONFIG_DRIVING_FILE NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
	SetPropertyStr(USACC_CONFIG_DRIVING_FILE NSSUBPROP_DESCRIPTION, "The XML defining the behaviour for the DRIVING MODE of the ACC has to be set here");

	SetPropertyStr(USACC_CONFIG_PARKING_FILE, "../../../../utilities/UltrasonicACC/UltrasonicACC_Parking.xml");
	SetPropertyBool(USACC_CONFIG_PARKING_FILE NSSUBPROP_FILENAME, tTrue);
	SetPropertyStr(USACC_CONFIG_PARKING_FILE NSSUBPROP_FILENAME NSSUBSUBPROP_EXTENSIONFILTER, "XML Files (*.xml)");
	SetPropertyStr(USACC_CONFIG_PARKING_FILE NSSUBPROP_DESCRIPTION, "The XML defining the behaviour for the PARKING MODE of the ACC has to be set here");

	SetPropertyBool(USACC_DEBUG_XML_BORDER_WARNING, tFalse);
	SetPropertyStr(USACC_DEBUG_XML_BORDER_WARNING NSSUBPROP_DESCRIPTION, "If enabled a warning is printed to console each time the border points of the given xml are reached");

	SetPropertyBool(USACC_DEBUG_PRINT_INITIAL_TABLE, tFalse);
	SetPropertyStr(USACC_DEBUG_PRINT_INITIAL_TABLE NSSUBPROP_DESCRIPTION, "If enabled the loaded points of the interpolation table of the XML are printed to console");

	SetPropertyInt(USACC_COUNTER_THRESHOLD_NOMOVE,3);//noMovementThreshold
	SetPropertyStr(USACC_COUNTER_THRESHOLD_NOMOVE NSSUBPROP_DESCRIPTION, "Defines the approximate time in seconds that should be waited until Feedback 'NoMovement' is sent");

	SetPropertyInt(USACC_COUNTER_THRESHOLD_MOVEAGAIN,1);//MovementAgainThreshold
	SetPropertyStr(USACC_COUNTER_THRESHOLD_MOVEAGAIN NSSUBPROP_DESCRIPTION, "Defines the approximate time in seconds that should be waited until Feedback 'MovingAgain' is sent");

	SetPropertyFloat(USACC_LOWERBOUND_SPEED,0.05); //modifiedSpeedLowerBound
	SetPropertyStr(USACC_LOWERBOUND_SPEED NSSUBPROP_DESCRIPTION,"Defines the remaining value of speed that is seen as 'no movement'.");

	SetPropertyInt(USACC_SENSOR_SCALING_FRONT,15);
	SetPropertyInt(USACC_SENSOR_SCALING_FRONT NSSUBPROP_MIN,15);
	SetPropertyInt(USACC_SENSOR_SCALING_FRONT NSSUBPROP_MAX,60);
	SetPropertyStr(USACC_SENSOR_SCALING_FRONT NSSUBPROP_DESCRIPTION, "With value 30, the sensor pointing in direction of current steering angle is weighted with '1', while the two sensors next to it are weighted with '0.5'; "
			"DECREASING this value leads to steeper slope of weighting function, that means sensors next to 'main'-sensor are weighted LESS, e.g. with 15: only main sensor is taken into account!");

	SetPropertyInt(USACC_SENSOR_SCALING_REAR,20);
	SetPropertyInt(USACC_SENSOR_SCALING_REAR NSSUBPROP_MIN,15);
	SetPropertyInt(USACC_SENSOR_SCALING_REAR NSSUBPROP_MAX,60);
	SetPropertyStr(USACC_SENSOR_SCALING_REAR NSSUBPROP_DESCRIPTION, "With value 30, the sensor pointing in direction of current steering angle is weighted with '1', while the two sensors next to it are weighted with '0.5'; "
			"DECREASING this value leads to steeper slope of weighting function, that means sensors next to 'main'-sensor are weighted LESS, e.g. with 15: only main sensor is taken into account!");

	SetPropertyFloat(USACC_SENSOR_FRONT_CHECK_LIMIT, 0.4);
	SetPropertyFloat(USACC_SENSOR_FRONT_CHECK_LIMIT NSSUBPROP_MIN,0.0);
	SetPropertyFloat(USACC_SENSOR_FRONT_CHECK_LIMIT NSSUBPROP_MAX,1.5);
	SetPropertyStr(USACC_SENSOR_FRONT_CHECK_LIMIT NSSUBPROP_DESCRIPTION, "US values greater this property are ignored, area should then be checked with 3D camera (values in meter)");

	SetPropertyBool(USACC_DEBUG_OUTPUT_TO_CONSOLE,tFalse);
	SetPropertyStr(USACC_DEBUG_OUTPUT_TO_CONSOLE NSSUBPROP_DESCRIPTION, "If enabled additional debug information is printed to the console (Warning: decreases performance)");

	SetPropertyBool(USACC_EXT_DEBUG_OUTPUT_TO_CONSOLE,tFalse);
	SetPropertyStr(USACC_EXT_DEBUG_OUTPUT_TO_CONSOLE NSSUBPROP_DESCRIPTION, "If enabled all US values are printed to the console (Warning: decreases performance)");


	m_bdebugModeEnabled = tFalse;
	m_bextendedDebugModeEnabled = tFalse;
	/* initialize to neutral mid-setting, corresponds to an angle of zero degree */
	tmp_steeringAngle.f32_value = 90;
}
LightMessageLogger::LightMessageLogger(const tChar* __info) : cAsyncDataTriggeredFilter(__info){

	debugModeEnabled = tFalse;

	// JSON file
	logfile_content.header_meta = "{\n   \"meta\": [ \n       {\n";
	logfile_content.header = "\n       }\n   ],\n   \"chat\": [ \n";
	logfile_content.content.clear();
	logfile_content.footer = "\n   ] \n}";

	new_content_counter = 1;
	carIsCarOne = tTrue;

	// Car names
	own_car_name = "Car 1";
	respondent_car_name = "Car 2";

	SetPropertyBool(LMLO_DEBUG_TO_CONSOLE, tFalse);
	SetPropertyStr(LMLO_DEBUG_TO_CONSOLE NSSUBPROP_DESCRIPTION, "If enabled additional debug information is printed to the console (Warning: decreases performance).");

	SetPropertyBool(LMLO_CAR_NAME, tTrue);
	SetPropertyStr(LMLO_CAR_NAME NSSUBPROP_DESCRIPTION, "If enabled this car is called Car 1");

}
cUserAttitudeFilter::cUserAttitudeFilter(const tChar* __info) : cFilter(__info)
{

	m_bDebugModeEnabled = tFalse;
	SetPropertyBool("DebugOutput",              m_bDebugModeEnabled);
	
	/*! total of 24 different euler systems. We support only one, yet. */
	m_EulerAnglesType = 0;
	SetPropertyInt("EulerAngles", m_EulerAnglesType);
	SetPropertyStr("EulerAngles" NSSUBPROP_VALUELISTNOEDIT, "0@YawPitchRoll");
	SetPropertyInt("EulerAngles"  NSSUBPROP_REQUIRED, tTrue);

	qX = .0;
	qY = .0;
	qZ = .0;
	qW = .0;
}