void HydraBlueprintDelegate::HydraControllerMoved(int32 controller,
	FVector position, FVector velocity, FVector acceleration,
	FRotator rotation, FRotator angularVelocity)
{
	if (implementsInterface())
		IHydraInterface::Execute_HydraControllerMoved(_interfaceDelegate, _latestFrame[controller], position, velocity, acceleration, rotation, angularVelocity);
}
Пример #2
0
boolean Sonar::readVal( HardwareTypeIdentifier type, HardwareCommandResult* result ) {
	if(implementsInterface(type)) {
		result->setUint8ListNum(1);
		result->getUint8List()[0] = read();

		return true;
	}

	return false;
}
Пример #3
0
boolean DigitalIOGeneric::writeVal( HardwareTypeIdentifier type, HardwareCommandResult* result ) {
	if(implementsInterface(type) && result != NULL && result->getUint8ListNum() > 0) {
		uint8_t action = result->getUint8List()[0];

		switch(action) {
			case 0:
				write(false);
				break;
			case 1:
				write(true);
				break;
			case 2:
				write(!read());
				break;
			default:
				return false;
		}
		return true;
	}

	return false;
}
Пример #4
0
boolean Light::readVal( HardwareTypeIdentifier type, HardwareCommandResult* result ) {
	//if(type == HWType_light && result != NULL)
	if(implementsInterface(type))
		return AnalogIOGeneric::readVal(type, result);
	return false;
}
void HydraBlueprintDelegate::HydraBumperReleased(int32 controller)
{
	if (implementsInterface())
		IHydraInterface::Execute_HydraBumperReleased(_interfaceDelegate, _latestFrame[controller]);
}
void HydraBlueprintDelegate::HydraUnplugged()
{
	if (implementsInterface())
		IHydraInterface::Execute_HydraUnplugged(_interfaceDelegate);
}
void HydraBlueprintDelegate::HydraTriggerChanged(int32 controller, float value)
{
	if (implementsInterface())
		IHydraInterface::Execute_HydraTriggerChanged(_interfaceDelegate, _latestFrame[controller], value);
}
void HydraBlueprintDelegate::HydraJoystickMoved(int32 controller, FVector2D movement)
{
	if (implementsInterface())
		IHydraInterface::Execute_HydraJoystickMoved(_interfaceDelegate, _latestFrame[controller], movement);
}