io.include("Aircraft/Generic/soaring-instrumentation-sdk.nas");

# The main vario functions are already setup by the S3 electric vario
# This file only adds the averager for the LX9050

var averager = Averager.new(
	input: s3.probe,
	buffer_size: 25,
	on_update: update_prop("/instrumentation/lx9050/average-reading-mps"));

var slow_instruments_add = UpdateLoop.new( 
	update_period: 1,
	components: [averager],
	enable: 1);
