New sensors
I wrote a sensor which encapsulates another sensor, integrating its value over time. A central ticker provided ticks to all integrating sensors. At each tick (currently 10 times per second), a portion of the input sensor value is added to the output sensor value. The portion can be selected.
A couple of days later I spotted a nice idea on the net: as long as the input is 1.0, the value keep increasing/decreasing. As soon as the input is 0.0, the value (slowly) returns to zero. This eliminates the need for a "zero" key; otherwise in example neutralizing a rudder would be difficult.
The purpose of the integrating sensor: digital 0.0/1.0 input in example from a keyboard or a digital joystick (like the POV button on the joypad) gets translated into pseudo-analog input. I created keyboards sensors which now can be used to in example steer the ship with W-S-A-D BF2-style :-)
A couple of days later I spotted a nice idea on the net: as long as the input is 1.0, the value keep increasing/decreasing. As soon as the input is 0.0, the value (slowly) returns to zero. This eliminates the need for a "zero" key; otherwise in example neutralizing a rudder would be difficult.
The purpose of the integrating sensor: digital 0.0/1.0 input in example from a keyboard or a digital joystick (like the POV button on the joypad) gets translated into pseudo-analog input. I created keyboards sensors which now can be used to in example steer the ship with W-S-A-D BF2-style :-)


0 Comments:
Post a Comment
<< Home