Add property for FG1000 update rate
/instrumentation/FG1000/adc-update-frequency can optionally be set to control the update frequency of the main ADC information. Set to "0" to update every frame.
This commit is contained in:
parent
5d3206fa70
commit
6746e52f6d
1 changed files with 5 additions and 1 deletions
|
@ -28,8 +28,12 @@
|
|||
|
||||
var GenericADCPublisher =
|
||||
{
|
||||
new : func () {
|
||||
|
||||
# Update frequency can be controlled by a property.
|
||||
var frequency = getprop("/instrumentation/FG1000/adc-update-frequency");
|
||||
if (frequency == nil) frequency = 0.1;
|
||||
|
||||
new : func (frequency=0.1) {
|
||||
var obj = {
|
||||
parents : [
|
||||
GenericADCPublisher,
|
||||
|
|
Loading…
Add table
Reference in a new issue