Are the controllers named Forward and LeftRight?
Quote from: Badnik96 on March 21, 2010, 07:12:08 PMAre the controllers named Forward and LeftRight?Yeah I figured out what happened, Sparkey has a weird way of controlling bots.
Or are you weird because you don't...*The fabric of space tears releasing waves of philosophy*
Couple ideas:1. You can code your py to fire the piston a short interval after the burstmotor (hammer).2. You can attach a SZ to the piston that will move/swing with the arm, and fire only when an enemy is under it's pointytips. (BFE) 3. You can see if you can get a legit return from "self.GetMotorAngle(CompID)" - This returns the angle of a motor in radians, but I've never tried it on a 'burst' motor so not sure what you'll get back. If you get a valid return, then since the angle of the BM is adjustable, you'll also have to play around to find out where you have the parameters of the burstmotor set for your bot's application (start position, and fired position [in radians: 0-6.28]). Here's some basic coding adapted from a servomotor: self.burstangle = self.GetMotorAngle(Component ID) [/color]#Find angle of burst motor. if self.burstangle > ?: #If angle of burst motor is beyond it's 'start' position (by whatever amount), self.Input("Fire_1", 0, 1) #Then fire the piston.