Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Looking up should be easy as you can PID your vel. pivot until it reaches whatever turn value you need for the "look up."
Yaw wise (returning to center/forward I suppose), I was thinking of comparing the base and gun's compass sensor and adding or subtracting rotation using a PID until the gun's compass sensor matches the base sensor.
I feel like I'm missing an obvious method but that's one theory.
I guess I have to applie that in Lua? or can a function work with this too? Good idea though!
Regarding your first message: I will try it with tilt sensors first because I think it's the easier variant and I dont want to rebuild my turrets to be hard-lockable to be honest. Worst case a laser beacon and sensor would be an option but I would like to avoid that due to compliaction aswell. I'll report if I did my testing!
The only thing is that using a PID properly for this two compass setup requires that the setpoint and variable need to be in a proper and ruled relationship always. A PID doesn't know what your numbers mean. It just cares about deriving a response value to get you to the setpoint. If you apply your logic you are changing the definition of what is the setpoint so the PID can't work properly to derive the response that is required. Additionally If the direction keeps crossing back and forth over the 0 line it's going to reek havoc on what the setpoint actually is.
also: Yea I just redesigned the turret to have the large pivots as vertical mounts. Would do the same for gorizontal but I dont have the space doe to my reload system.
Also, how do I instruct turrets to stop rotating at a certain angle then if I have the desired angle say at 10 degrees but the turret on the back naturally can't aim for it (think old world war naval ships).
It only took several hours of headache across 2 days. It's just trigonometry, the lasers are entirely a visual representation, though i need one laser to calculate distance so i can calculate everything else.
Why two? As far as I have seen, a tilt sensor gives you the absolute tilt angle regardless of what any sub-grids/blocks are tilting toward. As long as the tilt sensor is oriented for vertical angles, and attached directly somewhere on the "gun" portion where all the movements happen, the angle reported will be relative to the horizon. You don't need a second one on the main turret body to find "the difference" between them for calculating the "real angle." :)
I think I'm to stupid for that but very impressive!