Jump to content

Real Life Navball Project


JoePatrick1

Recommended Posts

Hi, I want to make a real life navball and I have figured it alll out apart form one detail. The navball in KSP just rotates freely however my real life version will rotate on 3 axis.

Here is a rough diagram to show what I mean (that tiny blue rod will be replaced with a motor)

Z2OelEq.png

Now as you can see the axis are all connected. For example rotating the roll motor (the one at the back) will move the pitch motor. This means that I can't just set the roll motor to the ships roll, the pitch motor to the ships pitch and yaw motor to ships yaw because that would require fixed axis. So does anyone know how I can sort of convert the rotation of the freemoving navball in to 3 axis as shown.

LUYRKkW.png

Thanks

Link to comment
Share on other sites

Looking at your diagram there, it seems you're going to need to solve it in a two-step math problem. Problem 1: Getting the top of the navball pointing in the right direction, and 2; getting the rotation of the ball correct. I'm going to load up the game and stare at the actual navball for a while, and see how it reacts to combinations of pitch/roll/yaw.

Link to comment
Share on other sites

9 hours ago, Starwhip said:

Looking at your diagram there, it seems you're going to need to solve it in a two-step math problem. Problem 1: Getting the top of the navball pointing in the right direction, and 2; getting the rotation of the ball correct. I'm going to load up the game and stare at the actual navball for a while, and see how it reacts to combinations of pitch/roll/yaw.

Using some raycasting in Unity I have so far got roll working. Today I am going to try and get pitch working by using a similar technique. The way the roll detection works is by finding the point where the horizon of the navball (as that is where the arm joins with the ball) aligns with the axis of rotation of the roll motor. This then gives me the required angle of the roll motor and it works as it should.

 

Link to comment
Share on other sites

Here is a video of the roll working. The left ball is 'streaming' from KSP and just rotates around a point. The right ball can only rotate on three axis the same way as the real life version

Here's another vid

 

Edited by JoePatrick1
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...