gametechmods

Robot Arena => General Support => Topic started by: Resetti's Replicas on January 21, 2014, 11:09:38 AM

Title: Srimech issues
Post by: Resetti's Replicas 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?
Title: Re: Srimech issues
Post by: Sage 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
Title: Re: Srimech issues
Post by: Trovaner 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.
Title: Re: Srimech issues
Post by: Naryar 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.
Title: Re: Srimech issues
Post by: Resetti's Replicas 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?