1
2
3 from SCA_ILogicBrick import *
4
6 """
7 Base class for all sensor logic bricks.
8 """
9
11 """
12 True if this sensor brick has been activated.
13 """
14
16 """
17 True if the sensor is in positive pulse mode.
18 """
20 """
21 Sets positive pulse mode.
22
23 @type pulse: boolean
24 @param pulse: If True, will activate positive pulse mode for this sensor.
25 """
27 """
28 The frequency for pulse mode sensors.
29
30 @rtype: integer
31 @return: the pulse frequency in 1/50 sec.
32 """
34 """
35 Sets the frequency for pulse mode sensors.
36
37 @type freq: integer
38 @return: the pulse frequency in 1/50 sec.
39 """
41 """
42 True if the sensor is in negative pulse mode.
43 """
45 """
46 Sets negative pulse mode.
47
48 @type pulse: boolean
49 @param pulse: If True, will activate negative pulse mode for this sensor.
50 """
52 """
53 True if this sensor activates on negative events.
54 """
56 """
57 Sets if this sensor activates on positive or negative events.
58
59 @type invert: boolean
60 @param invert: true if activates on negative events; false if activates on positive events.
61 """
62