+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: adv. pod variable out put.

  1. #1
    Wire Noob _-=DEF_CON=-_'s Avatar
    Join Date
    Feb 2008
    Posts
    10

    Default

    ok so im making a helicopter and all is well be for i have to make the cyclic pod controlled. i was using adv. inputs values 1-8 and that would move the whole rotor head enough to lean forwards backwards and side to side... each side of the 1x1 square that the rotor wheel was on had its own hydraulic, on the adv inputs the opposite side had the opposite controls so they wouldn't buckle and twist... so when i go to set it up with a pod and an adv. pod controller i cant find anything that works like an adv. input box. if any one knows of anything that you can wire to a pod that acts just like an adv. input box that would be cool.



    this is my first heli, but i think it looks pretty cool.^^^^







    here you can see the 4 hydraulics that control the cyclic.^^^^^




    here are were those hydraulics mount^^^^





    i just need something to control those hydraulics smoothly within a certain limit... and at a certain speed...
    what ever that item is i will also use it to control the speed of the main rotor and the tail rotor.
    ill use a delta stabilizer to keep this thing from freaking out and maybe then ill be able to fly a heli that only uses fin tool for movement and thrusters for stabilization ...
    Attached Thumbnails Attached Thumbnails adv. pod variable out put.-gm_construct0011.jpg   adv. pod variable out put.-gm_construct0010.jpg   adv. pod variable out put.-gm_construct0014.jpg   adv. pod variable out put.-gm_construct0015.jpg   adv. pod variable out put.-gm_construct0012.jpg  


  2. #2
    Wire Sofaking ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    542

    Default Re: adv. pod variable out put.

    Well, you can do that in a multitude of ways, including:
    A smooth gate
    The expression gate
    numpad inputs
    etc.

  3. #3
    Wire Noob _-=DEF_CON=-_'s Avatar
    Join Date
    Feb 2008
    Posts
    10

    Default Re: adv. pod variable out put.

    i am aware of the number pad output abilities i just want something i can wire to an advanced pod controller so i can use my WASD buttons to control the cyclic on the heli... so like if i were to hit W there would be a number out put that would increase as long as i held it(if i were to let go it would stop in place).... and also i would be able to set a limit on how big and how small that number could be... this way i could hook it up to the hydros and then be able to control the heli like a normal vehicle, no number pad shit and no messy wires.

  4. #4
    GMech Developer InfectiousFight's Avatar
    Join Date
    Jun 2007
    Location
    Houston, TX
    Posts
    537

    Default Re: adv. pod variable out put.

    For the body of that, did you ever consider using a 2-length box? It would use less parts.

  5. #5
    Wire Noob _-=DEF_CON=-_'s Avatar
    Join Date
    Feb 2008
    Posts
    10

    Default Re: adv. pod variable out put.

    i did... PHX 2x1's look like two 1x1's

  6. #6
    Wire Sofaking ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    542

    Default Re: adv. pod variable out put.

    Do you want it to slowly move back to zero?

  7. #7
    Wire Noob _-=DEF_CON=-_'s Avatar
    Join Date
    Feb 2008
    Posts
    10

    Default Re: adv. pod variable out put.

    no, i want it to act just like an adv. input box... go onto Gmod and go to wire then go down to I/O put... and it should be like the first one it says adv. input.... i want something that acts like that but can be wired to an adv pod so you can use WASD to control it...

  8. #8
    Wire Sofaking ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    542

    Default Re: adv. pod variable out put.

    Code:
    N@adv input thingy
    I@A1 B1 A2 B2 Max1 Min1 Max1 Min2 Step1 Step2
    O@Out1 Out2
    interval(50)
    #that interval can be changed, to speed up or slow down
    clk() & Active -> 
    Out1 = clamp( (A1 & !B1 ? Out1 + Step1 : (B1 & !A1 ? Out1 - Step1 : Out1)), Min1, Max1)
    Out2 = clamp( (A2 & !B2 ? Out2 + Step2 : (B2 & !A2 ? Out2 - Step2 : Out2)), Min2, Max2)
    ;
    That should do it. Not tested, mind you, but it should work.

  9. #9
    Wire Noob _-=DEF_CON=-_'s Avatar
    Join Date
    Feb 2008
    Posts
    10

    Default Re: adv. pod variable out put.

    oh an ode to those who can write good expression codes... TY

  10. #10
    Wire Noob stecman's Avatar
    Join Date
    Jan 2008
    Posts
    2

    Smile An easy solution!!

    I use this one on most of my contraptions - it's really really handy and its also easy to make once you get the hang of it! I figured this idea out my self ages ago but i'm not sure if anyone has already thought of it:
    2 Accumulators (call one "+" the other "-")
    2 Multiply Gates (call A and B)
    1 Negate Chip
    1 Constant value (the number will be change in units per second)
    1 Add

    wire A input of Multiply A to Accumulator +
    wire A input of Multiply B to Negate
    wire Negate to Accumulator -
    wire B input of Multiply A and Multiply B to Constant Value
    wire Add A and B to Multiply A and Multiply B

    If your number needs to default to something (say if to have a platform flat a hydraulic needs to be default to 114) and you want to reset the accumulators to get this number, put another add gate on the end and do the original add gate plus a number that you want to default to.

    reseting the circuit is simple - use the resets on the accumulators. BUT YOU MUST RESET BOTH to get 0 value!! (or what value you want as the "0")

    You can add limits with greater than and less than gates and if else then gates. For example: If value = less than 50 then the input to the negitive accumulator (to make the value less) becomes always 0 until the less than gate is saying the value is not less than 50 (outputting 0). Effectively you have a limit of no less than 50.

    How it works: When you press a button connected to the negitive accumulators input it will send a positive value through the negate and make it negitive. This negitive number will be added to (taken away as you are adding a negitive number) the total value thus making it less. pressing a button connected to the positive accumulator will add that value to the existing total. so if it is -45, adding 50 will make it equal 5 as a total. The multiply gates just increase the rate of change - so (assuming you have an input of 1 into the accumulators and not 5 or 0.2 etc) instead of counting the seconds (one unit per second) you are multiplying the seconds that pass by a constant: say if it was 10 - thats 10 units of change per second because 1 x 10 = 10!! Basically, the numbers will get huge but be relevtive so it might be a million and 10 take 1 million to get a value of 10.

    you can hook up anything to this. It is very useful and versitile as you can add a lot of paramaters that adv input cant have. Hope this is useful. If you want me to post a tutorial on youtube or need more information contact me at stecman@gmail.com

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. E2 Variable Insertion.
    By Bletotum in forum Installation and Malfunctions Support
    Replies: 17
    Last Post: 03-17-2009, 09:15 AM
  2. (E2) Variable self-check
    By CDRW in forum Expression 2 Discussion & Help
    Replies: 3
    Last Post: 01-11-2009, 02:07 PM
  3. name+variable in expression?
    By ThePearl in forum Expression 2 Discussion & Help
    Replies: 3
    Last Post: 01-04-2009, 02:46 PM
  4. Variable Numbering
    By chinoto in forum Ideas & Suggestions
    Replies: 10
    Last Post: 09-24-2008, 10:25 PM
  5. Variable wont zero out.
    By tomato3017 in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 04-17-2007, 05:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots