Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Requests
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Requests If you have a request for a new addon or want to know where to find a specific addon, ask it here!

Reply
 
Thread Tools
Old 08-29-2018, 12:11 PM   #106
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by gattispilot View Post
 Sorry. You said the SSu can switch different Reference points?
Yes. This is done by moving the Mode switch on A8U between either ORB UNL or END EFF. There's a third mode implemented, SINGLE/DIRECT. This mode drives one joint at a time which can be selected with the JOINT rotary switch on A8L.



Quote:
Originally Posted by gattispilot View Post
 So does it switch the point of the camera?
No. The SRMS has two cameras, one fixed on the end effector and one mounted on a standard pan/tilt unit on the elbow.

Last edited by DaveS; 08-29-2018 at 12:14 PM.
DaveS is online now   Reply With Quote
Thanked by:
Old 08-29-2018, 12:18 PM   #107
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks. I will look at the code for SSU then. Still don't see what it does though

Code:
void RMSSystem::Translate(const VECTOR3 &dPos, VECTOR3& newPos)
{
	if(RMSMode[5].IsSet()) { // END EFF
		// Reference Frame:
		// X: in direction of EE Z: opposite to camera direction Y: completes RH frame
		VECTOR3 y_axis = crossp(arm_ik_rot, arm_ik_dir);
		// create rotation matrix to convert vector from EE frame to Orbiter body frame
		MATRIX3 EERotMatrix = _M(arm_ik_dir.x, y_axis.x, arm_ik_rot.x,
							   arm_ik_dir.y, y_axis.y, arm_ik_rot.y,
							   arm_ik_dir.z, y_axis.z, arm_ik_rot.z);
		// matrix to convert vector from EE frame to IK frame
		MATRIX3 IKRotMatrix = mul(EERotMatrix, Transpose(GetRotationMatrix(_V(1, 0, 0), RMS_Z_AXIS_ANGLE)));
		newPos = arm_ik_pos+mul(IKRotMatrix, dPos);
	}
	else if(RMSMode[6].IsSet()) { // ORB LD
		//MoveEE(arm_ee_pos+RotateVectorX(dPos, -RMS_ROLLOUT_ANGLE), arm_ee_dir, arm_ee_rot);
		newPos = arm_ik_pos+RotateVectorX(dPos, RMS_ROLLOUT_ANGLE);
	}
}
gattispilot is online now   Reply With Quote
Old 08-29-2018, 12:18 PM   #108
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by gattispilot View Post
 And no sure how to control the rms in SSu?
First power up the aft flight station hand controllers by taking the FLT CNTLR PWR switch on A6U to ON. Then press Ctrl-A to switch over from the RCS hand controllers to the RMS hand controllers. Then you just use the NumPad controls as if you were flying the orbiter.
DaveS is online now   Reply With Quote
Thanked by:
Old 08-29-2018, 12:54 PM   #109
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So by switching reference points you control the arm differently.

ORB UNL
. Orbiter unloaded mode uses the
unloaded POR and defines the HC inputs to
coincide with the desired arm trajectory as
viewed out the aft windows. For example, to
translate the arm to the left as you are looking
out the aft window (toward the starboard side
of the vehicle), the THC would be deflected to
the left. To move the arm out of the payload
bay (up), the THC would be deflected up. To
bring the arm toward you, the THC would be
pulled out. RHC inputs are similar. To pitch
the arm or payload up with respect to you as
you are looking out the aft window, the RHC
would be tilted back toward you. To yaw the
arm/payload as you are viewing it, the RHC
would be twisted left or right about its long
axis. To roll with respect to your view, the RHC
would be deflected left and right.

and in EE mode.
END EFF
. End effector mode allows the HC
inputs to reflect motion desired when viewed
through the end effector camera. The sense the
operator has is that he or she is “sitting” on the
end of the end effector. When the arm is
aligned parallel to the longeron, and the wrist
joint angles are all zero, HC inputs in
END EFF
coincide with those in
ORB UNL/LD
. If the
wrist is then pitched down in that
configuration, the motion to take the arm down
into the payload bay would be a THC
downward deflection in
ORB UNL/LD,would be a push inward on the THC in
END EFF mode.


So I would say that the default Shuttle and Sf are set at ORB UNL, right?
So if you were to switch to EE it would be like you were at the EE and not the base, right? So it would seem the animation might be backwards then?
gattispilot is online now   Reply With Quote
Old 08-29-2018, 01:05 PM   #110
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by gattispilot View Post
 So if you were to switch to EE it would be like you were at the EE and not the base, right? So it would seem the animation might be backwards then?
The default Atlantis only does SINGLE/DIRECT JOINT mode where only one joint is controlled at any one time. The rest are passive.
DaveS is online now   Reply With Quote
Thanked by:
Old 08-29-2018, 01:14 PM   #111
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Quote:
Originally Posted by DaveS View Post
 The default Atlantis only does SINGLE/DIRECT JOINT mode where only one joint is controlled at any one time. The rest are passive.



Yes I can see that. I guess on SF you can preset the angle so more than 1 joint moves.
gattispilot is online now   Reply With Quote
Old 08-29-2018, 03:53 PM   #112
Donamy
Beta Tester


Default

No. It has nothing to do with the camera.
Donamy is offline   Reply With Quote
Old 08-29-2018, 04:15 PM   #113
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Yes. I got that. But as I understand it. The default Shuttle and Sf would be shoulder based. You can move individual joints ONLY except for preset ones.

But if I could switch to EE then movement would be relative to it and not the shoulder? Not it might be backwards? But since only single joints can move not sure the point.
gattispilot is online now   Reply With Quote
Old 08-30-2018, 01:26 AM   #114
Donamy
Beta Tester


Default

With your version, you are also able to translate in the shoulder based mode.
Donamy is offline   Reply With Quote
Old 08-30-2018, 10:35 AM   #115
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Quote:
Originally Posted by Donamy View Post
 With your version, you are also able to translate in the shoulder based mode.
so a good thing

I was running the SSU and was able to switch the modes but still not able to move the arm? I did the CTRL A and saw controlling rms.

I saw this in the doc for the IK
The cargo bay reference frame is as follows: The origin is at the center of the
shoulder pitch joint.
• The X axis extends down the cargo bay sill, from nose to tail. As you are
looking out one of the aft flight deck windows, +X is directly away from you
and –X is directly towards you.
• The Y axis extends across the cargo bay, from arm joint towards the KU
antenna. Again, looking out the rear windows, +Y is to the left and –Y is to
the right.
• The Z axis is perpendicular to X and Y, and completes a right-handed
system. +Z is “up” and –Z is “down”, again from the point of view of the aft
flight deck.

2006 Chris Jeppesen

So not sure how one could edit the code to make the EE the reference?
gattispilot is online now   Reply With Quote
Old 08-30-2018, 01:29 PM   #116
Donamy
Beta Tester


Default

The code is in SSU.
Donamy is offline   Reply With Quote
Thanked by:
Old 08-30-2018, 01:46 PM   #117
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Quote:
Originally Posted by Donamy View Post
 The code is in SSU.

Thanks. Yes I have seen the code. But the SSU has lots of stuff that I don't need.




But the code for translation IK is based off this:
The cargo bay reference frame is as follows: The origin is at the center of the
shoulder pitch joint.


So I wonder if I just change the origin to the center of the EE?


I would like to see this work in the Candian arm or SSu so I can see if my works.
gattispilot is online now   Reply With Quote
Thanked by:
Old 08-31-2018, 07:38 PM   #118
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I am trying to duplicate the issue.


I rotated,.... but it seem to hold to the center
gattispilot is online now   Reply With Quote
Old 09-01-2018, 12:44 AM   #119
Donamy
Beta Tester


Default

Try it on a payload that has a detailed grapple fixture. Move it all around and see if it stays steady on the fixture, without tilting of of it.
Donamy is offline   Reply With Quote
Old 09-01-2018, 12:23 PM   #120
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

I tried it in 2010. no issue. I move it by using the red marked boxes.



Another thing I may need to add to my rebuilt is the HUD display for rms.

BUT in SF in 2010 I pressed f1 and then Shift J and nothing
gattispilot is online now   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Requests


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 12:31 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright ©2007 - 2017, Orbiter-Forum.com. All rights reserved.