Jump to content

How to get BG robotics to work correctly?


Recommended Posts

I'm trying to make a hinge part, but can't get it to work correctly. The main issue is it doesn't open fully, stopping 3 degrees short.

unknown.png?width=1031&height=619

Might be another symptom, but the current angle only goes up to 90, then back down once the part moves past 90

unknown.png?width=1103&height=454

I've also noticed that when launching from the VAB, it always starts at 0deg, and then moves to the angle set in the VAB, instead of just starting at the set angle. The stock hinges don't do this, they launch at the angle set in the VAB.

Any help would be appricated, otherwise I'm just going to have to drop support for BG and just go IR.

The module in my cfg:

MODULE
	{
		name = ModuleRoboticServoHinge
		allowFullRotation = false
		servoTransformName = TopJoint
		baseTransformName = Base
		servoAttachNodes = top
		servoSrfMeshNames = COL2
		traverseVelocityLimits = 1, 30
		hardMinMaxLimits = 0, 180
		softMinMaxAngles = 0, 180
		targetAngle = 0
		modelInitialAngle = 0
		inverted = false
		mirrorRotation = false
		maxMotorOutput = 50
		driveSpringMutliplier = 100
		driveDampingMutliplier = 20
		motorizedMassPerKN = 0.0002
		motorizedCostPerDriveUnit = 1
		connectedMassScale = 1
		efficiency = 0.75
		baseResourceConsumptionRate = 0.02
		referenceConsumptionVelocity = 180
		jointParentRotation = 0,0,0,1
		servoTransformRotation = 0,0,0,1
		mainAxis = X
		useLimits = true
	}

And the model hierarchy:

unknown.png

(I have tried some other hierarchy layouts too, like another game object above the base mesh)

Edited by Rodger
Link to comment
Share on other sites

I got it working, and my testing seems to indicate there's some kind of hard cap of 177 degrees somewhere? So the model needs to be set up in a position where the full range of motion is less than 177 degrees away, to avoid hitting that 177 degree wall. I had my model set up in the closed position, with "modelInitialAngle = 0", but since that meant it'd need to move 180 degrees to fully open, it was hitting the hardcoded 177 degree limit. I adjusted the model so it was halfway open, with "modelInitialAngle = 90", and now it works. It also fixed the shown angle display not matching the target angle, and the differences in the VAB from flight.

Edited by Rodger
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...