+ Reply to Thread
Results 1 to 7 of 7

Thread: CPU + Wire Wheel

  1. #1
    Wire Noob Fidgetyrat's Avatar
    Join Date
    Apr 2007
    Posts
    4

    Default

    Using the SVN as of 04/17

    I can power a wheel by using a button to the "go" input just fine.. But connecting a CPU port to the GO fails to work. The screen attached to the same port indicates a value of "1" yet the wheel refuses to turn. Disconnecting it, and re-connecting to a button works fine..

    Note, ports are connected using the DATA addition for the high speed IO.

    I can power other things, such as hydraulics just fine, but not the wheel.

    Any solutions?


    Second, I would like to set an output in the cpu to 1 for a split second, likely .25s I can't seem to find reference on how to operate the built in TIMER.


    Thanks

  2. #2
    Administrator Tad2020's Avatar
    Join Date
    Feb 2007
    Location
    California, USA
    Posts
    1,498

    Default

    Try putting an Identity gate in between the cpu and the wire wheel.
    "Our death ray doesn't seem to be working. I'm standing right in it, and I'm not dead yet." - Jamie Hyneman
    "Yes, managing the anonymous activity of the entire Internet is a challenge. Shoving the entire universe into a mason jar for use as a personal flashlight would also be a pesky bother." - Karl, BBR

    WIREMOD WILL NOT WORK ON YOUR FACE! BUT IT DOES ON YOUR MOM :shifty:

  3. #3
    Wire Noob Fidgetyrat's Avatar
    Join Date
    Apr 2007
    Posts
    4

    Default

    I'll give that a shot next time I get on the game. Thanks.

  4. #4
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    TIMER returns number of seconds passed from start of execution/last RESET. Or maybe not, but it will return valid time.
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  5. #5
    Wire Amateur conman420's Avatar
    Join Date
    Feb 2007
    Location
    UK
    Posts
    98

    Default

    Would it be possible to move the timers value to a variable and then add 25 to that variable then move to a loop that compares the timer with the new variable. Say that the CPU had been on for 10 seconds you would mov that 10 to eax then add 25 to 10 = 35 then run a loop that compares current timer with 35 until it is greater or equal. Then do something.

    This might work. It doesn't do anything but it should stay in that loop for 25 seconds then move back to gettime.

    Code:
    gettime:
    Timer eax
    add eax,25
    jmp compare
    compare:
    timer ebx
    cmp ebx,eax
    jg gettime
    jmp compare

  6. #6
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Yeah, but internal timer can't be reset. So you gotta store start time somewhere, if you want to measure and have chance to reset.
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  7. #7
    Wire Amateur conman420's Avatar
    Join Date
    Feb 2007
    Location
    UK
    Posts
    98

    Default

    I would've thought that the second line

    TIMER eax

    would store the current time of the internal timer. So it wouldnt be effected by the time not being reset. Also this would have to be called every time a loop has been executed because EAX would be out of date.

+ Reply to Thread

Similar Threads

  1. Bi Directional wire wheel
    By Tango in forum Wiremod General Chat
    Replies: 1
    Last Post: 09-30-2008, 06:29 PM
  2. Pod-Control and wire-wheel
    By DeBro in forum Wiremod General Chat
    Replies: 5
    Last Post: 10-29-2007, 03:53 PM
  3. Convert to wire wheel
    By detsuo04 in forum Ideas & Suggestions
    Replies: 0
    Last Post: 08-16-2007, 10:05 PM
  4. new svn wire mod wheel not welding right
    By farout92227 in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 08-14-2007, 08:03 PM
  5. Wire Wheel
    By BirdBlack in forum Ideas & Suggestions
    Replies: 13
    Last Post: 02-22-2007, 06:32 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