how to get object's infromation to variable?
9 posts • Page 1 of 1
how to get object's infromation to variable?
Im tring to make an advance flight control system,automatic balance and stabilize the ship,but here's a problem is I cant get the exactly informaion of flight attitude for example angular velocity and speed and so on.
would anyone plz tell me how to get a object angular velocity to a variable number that I can uesed?
thank you for your help
would anyone plz tell me how to get a object angular velocity to a variable number that I can uesed?
thank you for your help
- epsilon
- Posts: 9
- Joined: Tue Dec 14, 2010 4:05 pm
Re: how to get object's infromation to variable?
epsilon wrote:Im tring to make an advance flight control system,automatic balance and stabilize the ship,but here's a problem is I cant get the exactly informaion of flight attitude for example angular velocity and speed and so on.
would anyone plz tell me how to get a object angular velocity to a variable number that I can uesed?
thank you for your help
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: how to get object's infromation to variable?
thx very much~
- epsilon
- Posts: 9
- Joined: Tue Dec 14, 2010 4:05 pm
Re: how to get object's infromation to variable?
its amazing!its so complicated,but it really really cool! thank u!
and its a little bit guilty feeling when using thsi probe,kind like its not my one, I just packaging a fight control system,hehe!
and its a little bit guilty feeling when using thsi probe,kind like its not my one, I just packaging a fight control system,hehe!
- epsilon
- Posts: 9
- Joined: Tue Dec 14, 2010 4:05 pm
Re: how to get object's infromation to variable?
I don't understand how it work!
I'm trying to stabilize my flight-object, but it oscillate more and more. Cause I don't know how to integrate my knowledge of control systems engineering in Thyme
I'm trying to stabilize my flight-object, but it oscillate more and more. Cause I don't know how to integrate my knowledge of control systems engineering in Thyme
- Attachments
-
flight-object.JPG- (39.95 KiB) Not downloaded yet
- Algonaut
- Posts: 13
- Joined: Mon May 05, 2014 8:30 am
Re: how to get object's infromation to variable?
This should of been a new thread, but I'm too busy to move the one post. Your thrusters are probably too powerful, or your tolerance of the y level is too low. Even when the thrusters are turned off, the object will keep moving, increasing the tolerance and miniming the power of the thrusters should be able to helo this, maybe adding reverse thrusters on the other side to try limiting the amount it can go over the y axis as well.
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: how to get object's infromation to variable?
electronicboy wrote:This should of been a new thread, but I'm too busy to move the one post. Your thrusters are probably too powerful, or your tolerance of the y level is too low. Even when the thrusters are turned off, the object will keep moving, increasing the tolerance and miniming the power of the thrusters should be able to helo this, maybe adding reverse thrusters on the other side to try limiting the amount it can go over the y axis as well.
The power (force) of the thrusters is determined by formula:
{force := 943 - (scene.my.pos * scene.my.pos)}
scene.my.pos is the variable for position of the block
As you can see, there is nothing like control systems engineering
I need a formula or computer-code such as PID-Control to integrate in the thrusters
- Algonaut
- Posts: 13
- Joined: Mon May 05, 2014 8:30 am
Re: how to get object's infromation to variable?
See, I don't think there is a way to handle this nicely, however you could have a loop running:
if Y < (desiredY - tolerance) {
force = force + <finetune a value> }
if Y > (desiredY + tolerance) {
force= force + <finetune a value> }
that is wrote during extreme tiredness, so expect a logic failure, and note: that's probably not valid in thyme at all, more of a hybrid pseudo code.
and, I know the fun of some electrical control systems (mainly changeovers), but that's about it
if Y < (desiredY - tolerance) {
force = force + <finetune a value> }
if Y > (desiredY + tolerance) {
force= force + <finetune a value> }
that is wrote during extreme tiredness, so expect a logic failure, and note: that's probably not valid in thyme at all, more of a hybrid pseudo code.
and, I know the fun of some electrical control systems (mainly changeovers), but that's about it
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: how to get object's infromation to variable?
Hi Algonaut,
There are at least a couple of scenes on Algobox that utilize PID control which you may be able to use for your scene. I looked at the image that you posted of the plot but it would be more helpful if you could post the actual scene that you are having trouble with, and one of us might be able to help you better.
There are at least a couple of scenes on Algobox that utilize PID control which you may be able to use for your scene. I looked at the image that you posted of the plot but it would be more helpful if you could post the actual scene that you are having trouble with, and one of us might be able to help you better.
-

Xray - Posts: 501
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
9 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests




