Author Topic: Srimech issues  (Read 1141 times)

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Srimech issues
« on: January 21, 2014, 11:09:38 AM »
 my replica of Arnold arnold wont fire its srimech when its flipped on its back or side.  I think it may be because its resting on a component without its body touching the floor.  Can i change something to make it fire its srimech more often?

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: Srimech issues
« Reply #1 on: January 21, 2014, 01:02:10 PM »
I haven't heard the term srimech in so long I almost forgot what it meant. Shows how much invertibility took over.

As for your issue, there should be a way in the python coding to have it recognize when the robot's axis is inverted. Unfortunately I have no idea how to do that :P
You got my vote for RA2 Wizard. Always and forever.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Srimech issues
« Reply #2 on: January 21, 2014, 07:22:58 PM »
The current code should detect when bots are upsidedown regardless of whether they are in the air or not.

If, however, a component is causing it to be closer to laying on its side than it won't work. Snow.py has some handling for this kind of situation but it wasn't really designed to work universally. IIRC, it used the getDirection command to check the orientation of the bot.

If this is not the case for you, I would double check that the PY supports a srimech, you are using the correct spelling/capitalization/spacing for the control ingame, and the bindings label the bot as not being invertible.

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Srimech issues
« Reply #3 on: January 21, 2014, 07:49:08 PM »
Make a loop with X seconds having passed with 0 speed and if that's the case => activate the srimech.

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Srimech issues
« Reply #4 on: January 22, 2014, 11:32:51 AM »
Make a loop with X seconds having passed with 0 speed and if that's the case => activate the srimech.
How do I do that?