+ Reply to Thread
Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 75

Thread: Wired Servo

  1. #11
    Wire Amateur Exitlights's Avatar
    Join Date
    Mar 2007
    Posts
    35

    Default

    aah now we see why mine is simpler. It already only does 1 axis and uses an axis joint. And you can set it with any componants output i think at least it works find with adv input and beacon sensors.[/b]
    Yeah, I opted for greater mobility while sacrificing the ability to update really quickly, just because the prospect of making completely swiveling servos was too great to pass up. But, at this point, I couldn't do much with that anyway due to the slowness/impossibility(?) of changing more than one angle at once. I'll try out some code for changing the axis of rotation every time the input switches... maybe an input that accepts a 0, 1, or 2 and from that rotates along either the yaw, pitch, or roll axis. I'll work on it today and probably have an updated and more stable version tonight.

  2. #12
    Wire Noob DarthPJB's Avatar
    Join Date
    May 2007
    Location
    Plymouth, UK, Earth
    Posts
    23

    Default

    This works perfectly, at first i had problems due to the fact that the ammbox used as a servo has a mass of only 5 (why i have no idea) and so couldn't support any constrait with an object with a higher mass (pretty much anything), but after pulling out the mass (aka weight) tool and setting it to about 300, it worked like a dream.

  3. #13
    Wire Amateur Multey's Avatar
    Join Date
    Apr 2007
    Posts
    50

    Default

    What is it? And pics mabey

  4. #14
    Wire Noob Critical_Impact's Avatar
    Join Date
    May 2007
    Posts
    13

    Default

    I am trying to use this as a rotation tool for a cannon, but whenever i go past 96 with the yaw it starts to spaz out and I have to take it back to 0 for it to work. Anyone know why?

  5. #15
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    Want me to upload mine? It works fine on all angles although it only supports 1 plane of rotation. Beware does spaz if created vertically or if excessive weight is placed on it.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  6. #16
    Wire Noob Critical_Impact's Avatar
    Join Date
    May 2007
    Posts
    13

    Default

    Yeah tomb332, that would be awesome, I had a go at modifying ExitLights script but didn't get far.

  7. #17
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    [attachment=577:servo.zip]
    Warning still very much BETA version and yes there isnt a tool setting panel for it.
    INPUTS: Angle Speed.
    Angle is what angle you want it to move to.
    Speed means if speed is nonzero then the servo will move by that many degrees a tick insted of instantly to the chosen angle. (PS the servo ticks 20x a sec so a speed of 1 is 20 degrees a second.)
    Attached Files Attached Files
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  8. #18
    Wire Amateur Exitlights's Avatar
    Join Date
    Mar 2007
    Posts
    35

    Default

    I didn't get around to making the fix that I meant to (I got a new laptop yesterday and had to play with it for many hours), but I'll make it as soon as I get a chance.

    [attachment=577:servo.zip]
    Warning still very much BETA version and yes there isnt a tool setting panel for it.
    INPUTS: Angle Speed.
    Angle is what angle you want it to move to.
    Speed means if speed is nonzero then the servo will move by that many degrees a tick insted of instantly to the chosen angle. (PS the servo ticks 20x a sec so a speed of 1 is 20 degrees a second.)[/b]
    You know, the way you held the servo to updating only at a certain rate, I could do the exact same thing with mine... making it so that it won't update if it doesn't need to, but if it IS constantly changing, make it so it checks a timer before rotating itself. This is more a note for myself, because I'm not at my home computer right now.

  9. #19
    Wire Amateur Exitlights's Avatar
    Join Date
    Mar 2007
    Posts
    35

    Default

    [attachment=581:wireServo1.6.zip]OK, here's my next copy of it... It turns out that my servo wasn't experiencing gimbal lock, but rather was trying to rotate around the wrong axis, causing it to freak out (somehow). That problem is solved now, and you can make it rotate along as many angles to whatever degree you want. That was just a dumb mistake on my part that caused me to do a lot of searching for a method that wouldn't freak out... simple fix.

    Also, I added a speed limiter so that the advanced input wouldn't dominate the processor and physics, but I don't like how this cripples the ability of the advanced input (and probably other things). So, I left the limiter code in there, except disabled, until I can figure out how to use ConVars and make a checkbox for it. Any help here would rock!

    For some reason, I can't get wires to show up between my connections... help here would equally rock.

    One final note--it's true that the mass of the ammobox isn't ideal, but the perfect weight really depends on what's being attached to the servo. I'm going to leave it as-is, but just be aware that if it's not working the way you want it to, it's probably the mass that needs a little adjusting.

    Happy contrapting!
    Attached Files Attached Files

  10. #20
    Wire Noob Infinint's Avatar
    Join Date
    Jun 2007
    Posts
    11

    Default

    Having this thing track targets was very nice, untill it spazzed out =/ It wasn't untill I added a few objects to it and another servo, I think the second servo is what set it off.

    Other than looking into that, I think it may be a good idea to have a speed input, so that it doesn't instantly go to the input angle.

+ Reply to Thread
Page 2 of 8 FirstFirst 1234 ... LastLast

Similar Threads

  1. Wired Servo 2
    By Exitlights in forum Wiremod Addons & Coding
    Replies: 51
    Last Post: 08-13-2009, 11:05 AM
  2. Simple Servo -> normal servo
    By [FX]CJ[CrS] in forum Bug Reports
    Replies: 1
    Last Post: 12-12-2008, 05:05 PM
  3. more true to life Wired Servo (it's not what you think)
    By -Gamah in forum Ideas & Suggestions
    Replies: 5
    Last Post: 07-14-2008, 02:21 AM
  4. Wired Servo.. I have it. Care to take a look?
    By F12Bwth in forum Ideas & Suggestions
    Replies: 13
    Last Post: 05-18-2008, 02:37 AM
  5. Wanted to Buy: Wired Servo
    By bprater in forum Ideas & Suggestions
    Replies: 3
    Last Post: 05-28-2007, 03:24 AM

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