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

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024

ความคิดเห็น • 77

  • @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 ปีที่แล้ว +14

    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  ปีที่แล้ว +4

      Mabye!

    • @laurinmeier4045
      @laurinmeier4045 ปีที่แล้ว

      No you will. I will make you do it

  • @schaksi631
    @schaksi631 ปีที่แล้ว +3

    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 ปีที่แล้ว +5

    Be awesome if you included a lead calculator with it

  • @giorgiolelmi8175
    @giorgiolelmi8175 11 หลายเดือนก่อน +2

    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.

  • @stoer8
    @stoer8 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      Ahh, my bad, sorry

    • @480db
      @480db ปีที่แล้ว

      It's ok) still very good tutorial

  • @pete5516
    @pete5516 ปีที่แล้ว +1

    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  ปีที่แล้ว +3

      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 ปีที่แล้ว +1

      @@se-ssi thanks a bunch, will check it out later

    • @giorgiolelmi8175
      @giorgiolelmi8175 11 หลายเดือนก่อน +1

      What's Your Steam Account?@@se-ssi

  • @21snipers16
    @21snipers16 ปีที่แล้ว

    Nice

  • @nocommantarygameplay5516
    @nocommantarygameplay5516 ปีที่แล้ว +1

    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  หลายเดือนก่อน +1

      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 หลายเดือนก่อน +1

      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 หลายเดือนก่อน +1

      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 หลายเดือนก่อน +1

      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!

  • @I-like-bigos
    @I-like-bigos ปีที่แล้ว +1

    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.

  • @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

  • @presidentluigi7174
    @presidentluigi7174 ปีที่แล้ว

    Is there any way to account for roll without the pivots?

    • @se-ssi
      @se-ssi  ปีที่แล้ว +1

      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 หลายเดือนก่อน +1

    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. TH-cam terrible recommendations!!

  • @Kuzuma54070
    @Kuzuma54070 28 วันที่ผ่านมา

    You have saved me so much pain 🫡