Scrap Mechanic

Scrap Mechanic

Not enough ratings
G-sensor 2 axis
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.889 KB
13 Nov, 2017 @ 5:31am
13 Nov, 2017 @ 5:48am
2 Change Notes ( view )

Subscribe to download
G-sensor 2 axis

Description
Responds to G-force and angular speed

I/O:
switch - G sensor off (default on)
bright sensors - linear acceleration
dark sensors - angular speed

Configure G sensor:
spring tension - response <--> accuracy
piston speed - high damping <--> low damping
bearing 1 - deadzone normal < 67, deadzone inverted > 67

Configure angular speed sensor:
bearing 2 & 3 - detection treshold

Output format:
- G-sensor outputs pulse signals (PPM).
- Angular sensor outputs boolean rotary speed.

Additional tips:
- use sensor blocks as output when you need low latency.
- keep G-sensor close to the center of mass for optimal operation.
- invert G-sensor data with angular data to give vehicles awareness of g-force vs lateral impulses.
- feed an external signal to the controller for a dynamic G-sensitivity/angular threshold.

Example implementation:
- http://steamproxy.net/sharedfiles/filedetails/?id=1199066236
1 Comments
suicidal.banana 13 Nov, 2017 @ 7:34am 
Thats pretty cool! :o