Glider vario: Add battery level to ilec-sc7
Code by: Delta Echo <echoair@t-online.de>
This commit is contained in:
parent
3a7519dc78
commit
741fc5c43b
1 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,9 @@ var averager = Averager.new(
|
|||
input: probe,
|
||||
buffer_size: 25);
|
||||
|
||||
var battery_level = { output: 9.9 };
|
||||
var battery_level = PropertyReader.new(
|
||||
property: "systems/electrical/volts",
|
||||
scale: 0.1);
|
||||
|
||||
var temperature = PropertyReader.new(
|
||||
property: "environment/temperature-degc",
|
||||
|
@ -69,5 +71,5 @@ var fast_instruments = UpdateLoop.new(
|
|||
|
||||
var slow_instruments = UpdateLoop.new(
|
||||
update_period: 1,
|
||||
components: [averager, temperature, lcd_controller],
|
||||
components: [battery_level, averager, temperature, lcd_controller],
|
||||
enable: 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue