No video

Stormworks Trigonometry Tutorial | Radar to GPS | GPS turret | Autopilot

  Рет қаралды 14,708

Se-ssi

Se-ssi

Күн бұрын

Пікірлер: 78
@Sembel-xh9vq
@Sembel-xh9vq Ай бұрын
I got an idea for a new microcontroller based on this tutorial. With the GPS position of other targets now availalbe, you could make a TCAS Microcontroller (Traffic Collision Avoidance System). By calculating the closest point of approach (CPA), determining if it is within a protected airspace around your vehicle and time to CPA calculations, you would have a working TCAS. You could go further by actually using the different colors to display targets on the screen, depending on if they are other traffic, proximate traffic, possible threats or real threats. And calculating the relative altitude difference shouldnt be a problem, since you have your own altitude and the targets altitude. I guess it would be pretty cool to slap onto a 2x2 screen, since its basically a radar showing you all aircraft with their relative altitude + - your altitude + the feature to give you traffic warnings (or even resolution advisories, if you have like a lot of time to figure that out?)
@laurinmeier4045
@laurinmeier4045 Жыл бұрын
Very nice video! might i suggest an XML tutorial next? it seems like a rather important part of advanced Stormworks, and i feel as though many new players are struggling with XML editing.
@se-ssi
@se-ssi Жыл бұрын
Mabye!
@laurinmeier4045
@laurinmeier4045 Жыл бұрын
No you will. I will make you do it
@schaksi631
@schaksi631 Жыл бұрын
From what i have tested, this radar setup works for airplanes. Only thing to do is to stabilize the roll by using a pivot and tilt sensor. By doing that the avarage deviation between the calculated radar value and the actual coordnates is between 5 - 25 meters. Tracking other planes and guiding something like a aim120 is in deed possible. Thanks for the showcase/tutorial
@sniperbattledroid7447
@sniperbattledroid7447 Жыл бұрын
Be awesome if you included a lead calculator with it
@giorgiolelmi8175
@giorgiolelmi8175 11 ай бұрын
This is was so helpful for me. Thank you so much for the smart work!
@Legoperson75
@Legoperson75 6 ай бұрын
Think the sensor arrays could definitely be compacted down into a single physics sensor. It’s been really handy since that things come out.
@aguy2234
@aguy2234 13 сағат бұрын
Hey, I'm trying to make an auto turret, and I'm wandering if there's a way to make a simple on/off output that changes depending on if a target is found?
@stoer8
@stoer8 Жыл бұрын
This will not work for any elevation angle other then 0 due to the bad spherical to cartesian conversion, do this instead x = cos(azi)*cos(elev)*dist y = sin(azi)*cos(elev)*dist z = sin(elev)*dist
@se-ssi
@se-ssi Жыл бұрын
It's a simplified version. But after all of my testing, it sill works just fine. Might be more efficient that way however.
@Sawer
@Sawer Жыл бұрын
Really good tutorial! since you asked for feedback. Maybe try to explain more frequently why you are doing certain ways so people understand what to do instead of just following a step by step instruction. Dont get me wrong, you did something exactly like this a couple of times. I just like to see more of that :) I find dumming down something a bit really helps while doing tutorials. But thats me nitpicking honestly, like i said, you even did it a couple of times. And maybe for time sake you didnt do it more frequently, dunno. Tho if it were that last case id concider doing a 2 parter (potentially twice the watchtime and more time to really get in there :) ) Really enjoyed it, its clear a lot of prep went into this, I hope you'll do more of this!
@se-ssi
@se-ssi Жыл бұрын
I forgot it, sorry, it's in the description. Thanks for the feedback. I thought about always repeating for it to be easy to understand, my thoghts however where that I mention everything once or twise but then they learn so I don't need to repeat it. It makes it so the viewer has to learn... I hope it works. Thanks again!
@Sawer
@Sawer Жыл бұрын
@@se-ssi no worries, thanks for the update! Tutorials are tricky! Too much info gets great understanding and a pain to watch. Too little wouldnt really be a tutorial. You are doing wayy better than my first year of them. And arguably to this day which pains me to say😂😂.
@SmallBrainPerson
@SmallBrainPerson 2 ай бұрын
Epic intro.
@user-gn3ep6ud2v
@user-gn3ep6ud2v Жыл бұрын
Very good video! Thank you.I understen hou it works.😊
@480db
@480db Жыл бұрын
Lol I was just making this by my own. But still thanks for the video. If I'll make some mistakes I'll watch it again
@480db
@480db Жыл бұрын
13:53 two velocity pivots, but it's a robotic one. And yes I made some mistakes and I came back)
@se-ssi
@se-ssi Жыл бұрын
Ahh, my bad, sorry
@480db
@480db Жыл бұрын
It's ok) still very good tutorial
@pete5516
@pete5516 Жыл бұрын
Great video! The maths explanations were on point, I got all that but I’m a bit new to stormworks so I’m wondering how you would implement this as autopilot. For example how would you input the destination you want to get to, would it be from a radio or another gps somewhere else or what? Thanks again for the tutorial 🙏
@se-ssi
@se-ssi Жыл бұрын
You can check my workshop out and you should find a microcontroller called autopilot. But it's really the same as a GPS turret. And the way you put in the destination can simply be entering target coordinates on a keyboard.
@pete5516
@pete5516 Жыл бұрын
@@se-ssi thanks a bunch, will check it out later
@giorgiolelmi8175
@giorgiolelmi8175 11 ай бұрын
What's Your Steam Account?@@se-ssi
@21snipers16
@21snipers16 Жыл бұрын
Nice
@nocommantarygameplay5516
@nocommantarygameplay5516 Жыл бұрын
Wouldn't you have to use the horizontal distance to the target to get the relative y and x? With youre code the target could be flying high and therefore give out Incorrect coordinates couse you are using the direct distance. Correct me if I'm wrong.
@se-ssi
@se-ssi Жыл бұрын
I see what you mean. I did it that way first. But you can skip it by using tan, as in the video.
@marqe_
@marqe_ Жыл бұрын
quite good job sessi, underrated, sadly
@afourz_z
@afourz_z 11 ай бұрын
[ ^0.5 ]? And so it was permissible to do? Haha)))) I've always written [ c = math . sqrt (a^2 + b^2) ] and didn't even think it was possible to shorten it a bit. It's curious. TY))
@autisticreatard7848
@autisticreatard7848 7 ай бұрын
this video was very helpful but for some reason it appears as though it no longer works
@se-ssi
@se-ssi Ай бұрын
Look at the example version available in the description. You can compare to find what's causing your problem.
@arpioisme
@arpioisme 5 ай бұрын
Can we make an autopilot / position holder just using GPS?
@se-ssi
@se-ssi Ай бұрын
That is possible.
@kennlex1966
@kennlex1966 Жыл бұрын
well I did everything you did radar works fine but Im having problem with Weapon/Laser controls It doesnt track the vehicle that radar tracks
@se-ssi
@se-ssi Жыл бұрын
Compare with the example version on the workshop. Or join the discord and I can help you.
@theofficiaIsteve
@theofficiaIsteve 5 ай бұрын
15:04 do I connect the composite input directly to the radar on the corner? Because you never made it clear and I am so confused on where you link composites
@se-ssi
@se-ssi 5 ай бұрын
The composite should be connected to the GPS output of the radar to gps mc.
@theofficiaIsteve
@theofficiaIsteve 5 ай бұрын
@@se-ssi does it require player guidance?
@theofficiaIsteve
@theofficiaIsteve 3 ай бұрын
@@se-ssi I fixed a confusing problem, I paused the video at 10:39 because of a fix I made. I decided to output the "yawAngle" and "pitchAngle" to my pivots and it saved my life, it can now track things, what I will do is I will work out a solution for radar leading and test it out
@bajsapa3892
@bajsapa3892 Жыл бұрын
this shit is fucking rocket science...
@user-lk2bp2nh3j
@user-lk2bp2nh3j 11 ай бұрын
Is there a fix for the roll of a GPS turret ( the turret that is pointing at a GPS cord) I need one becasue i am trying to mount a turret on a ship. keep in mind that a stabilizer for the turret is not an option (too big)
@se-ssi
@se-ssi 11 ай бұрын
Yes there is. You can look at my GPS turret lua code for the full rotation compensation of every axies here: steamcommunity.com/sharedfiles/filedetails/?id=2999916357 But if you only want the roll compensation this should work: selfRoll = (input.getNumber(16)*math.pi*2) --Physics sensor channel 16 should be the roll. output.setNumber(1, (-yaw * math.cos(selfRoll)) - pitch * math.sin(selfRoll)) --Yaw control output.setNumber(2, pitch * math.cos(selfRoll) - yaw * math.sin(selfRoll)) --Pitch control You might have to play with putting a - around each output if reversed.
@maksslime
@maksslime 2 ай бұрын
what should I do if the radar seems to see the target but the turret is spinning from side to side trying to aim at it?
@se-ssi
@se-ssi Ай бұрын
Join the discord server for help. There I can help you!
@maksslime
@maksslime Ай бұрын
​​@@se-ssi I would love to, but I don't understand English well, and translators don't help much. 😅 and I kind of solved the problem (I just wrote off the code incorrectly) although the turret still crashes, but less often
@yamclam
@yamclam 9 ай бұрын
Is it just me or should the z coordinate be calculated with sin instead of tan?
@se-ssi
@se-ssi 9 ай бұрын
Tan gives the same output in this case. But yes sin makes more sense.
@LogoMasterWT
@LogoMasterWT 11 ай бұрын
how would i do this without rotating the radar
@se-ssi
@se-ssi 11 ай бұрын
Rotating the coordinate system. Its more advanced, which is why I didn't include it. See my targeting system mc lua block script for some example code.
@Miko-yi5zw
@Miko-yi5zw Жыл бұрын
when i do it the turret doesnt want to move
@se-ssi
@se-ssi Жыл бұрын
You are welcome to come ask me on the discord server. We can try to figure out what's wrong. Link's in the description on the video.
@AndrewH428
@AndrewH428 Жыл бұрын
Ngl, I'm very confused why we're using the tangent function to find Z. Isn't the distance to the target always going to be the hypotenuse, and thus it shouldn't factor into a tangent formula?
@se-ssi
@se-ssi Жыл бұрын
Sine works just as well and makes more sense. So you can just use sin() instead. Sorry for the confusing code. I decided to use tan for some reason but sin results in the exact same numbers.
@AndrewH428
@AndrewH428 Жыл бұрын
@@se-ssi Appreciate the response!
@Sam-nt6mh
@Sam-nt6mh 11 ай бұрын
Does this work with a sweeping Radar? If not why not?
@se-ssi
@se-ssi 11 ай бұрын
If you add the sweep angle to the detected yaw angle. I'd just make the turret yaw pivot sway instead.
@Sam-nt6mh
@Sam-nt6mh 11 ай бұрын
@@se-ssi I’m gonna do the second one. Thanks!
@F-14D_Tomcat
@F-14D_Tomcat 11 ай бұрын
i tried to build one, and the radar-gps module worked, but i couldn't get a response for the gps-turret module. Any suggestions?
@se-ssi
@se-ssi 11 ай бұрын
Compare with the example version on the workshop. See if you have code errors...
@F-14D_Tomcat
@F-14D_Tomcat 11 ай бұрын
@@se-ssi ok, thanks!
@daemonsmith9814
@daemonsmith9814 Жыл бұрын
ill try this wheen im home, does this work with the radar on Clockwise?
@se-ssi
@se-ssi Жыл бұрын
Sure. Just reverse the yaw
@I-like-bigos
@I-like-bigos Жыл бұрын
I got a question could you please make a tutorial on how to make the gps missile microcontroller beacause i cant find any tutorial on how to make obe and i dont want do download either 😅😅
@bajsapa3892
@bajsapa3892 Жыл бұрын
your only hope is to download LMFAO you need to be an engineer if you wana make this.
@presidentluigi7174
@presidentluigi7174 Жыл бұрын
Is there any way to account for roll without the pivots?
@se-ssi
@se-ssi Жыл бұрын
Yes. Using a rotation matrix or vector math. See my newest version on my workshop : se-ssi's Workshop Called: Radar_deprecated To GPS (PRO)
@presidentluigi7174
@presidentluigi7174 Жыл бұрын
@@se-ssi Thank you
@Malenhagen
@Malenhagen Жыл бұрын
Yeah but stabilization of radar is working only for ships. On planes this thing will be give poor data, because of fast rotation and peak angles. Why you dont give us code to correct convert radar to global coordinates based on 3 tilt sensors and compas or on phisics block?
@se-ssi
@se-ssi Жыл бұрын
My pro versions do that. This video is meant to be as simple as possible for the people to learn. If a more advanced version is requested enough I might make one.
@Malenhagen
@Malenhagen Жыл бұрын
@@se-ssi Oh god. Please tell me you can share it. Please.🙏
@Malenhagen
@Malenhagen Жыл бұрын
@@se-ssi oh. I founded it in your workshop.
@Malenhagen
@Malenhagen Жыл бұрын
@@se-ssi Dude this thing is perfect. You are genius. I cant make this for two years. And you just do exactly what i need. God thanks for send me this talanted person. And thank you very much for this goddest creation. I wont forget you. Im so happy. Now im able to move further. Its a giant lead for me. Oh boy.
@se-ssi
@se-ssi Жыл бұрын
@Malenhagen Thank you for using it and giving feedback. It's beacuse of this feedback I continue to make these creations. It gives me the happiness and motivation I need to continue. So thank you so much! stay tuned. I'm releasing my best creation so far, soon. (On the workshop first)
@rukiabarr3088
@rukiabarr3088 Жыл бұрын
1st
@elliotkopitske6222
@elliotkopitske6222 Жыл бұрын
your mic is very quiet
@se-ssi
@se-ssi Жыл бұрын
Noted!
@tobygreen7116
@tobygreen7116 9 ай бұрын
Why when I look for stormworks tutorial I get frantic with his tutorials that require you to assemble then reassemble half way through the tutorial. KZfaq terrible recommendations!!
@Kuzuma54070
@Kuzuma54070 29 күн бұрын
You have saved me so much pain 🫡
RADAR TRACKED GUN!! - Search & Destroy Weapons DLC - Stormworks
19:05
Stormworks - Custom Radar Tutorial
33:03
Blue Trucking City
Рет қаралды 619
wow so cute 🥰
00:20
dednahype
Рет қаралды 29 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 24 МЛН
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Stormworks | GPS missile system V2
4:28
Se-ssi
Рет қаралды 21 М.
Radar Guided Mobile Sam ( made crudely for testing)
1:31
71Splinter
Рет қаралды 4,5 М.
Mojang sneaks in the best EATING UPDATE ever.
5:53
Phoenix SC
Рет қаралды 468 М.
I Made The Truman Show In Minecraft
9:05
DerpDurCake
Рет қаралды 118 М.
Gear - Roblox's Biggest Scam
8:33
Breadian
Рет қаралды 147 М.
The Valkyrie | Showcase | Stormworks
5:01
Se-ssi
Рет қаралды 1,1 М.
Stormworks | GPS missile controller tutorial
7:00
Se-ssi
Рет қаралды 20 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 29 МЛН