Openvario / variod

Daemon for autonomous e-vario
4 stars 8 forks source link

support POV,C,RPO sentences coming from XCSoar #19

Closed bomilkar closed 4 years ago

bomilkar commented 4 years ago

This sentence intends to set the Real Polar for STF. The unit of horizontal speed is m/s in XCSoar and km/h in variod. Added files utils.h and utils.c which will grow by a few more functions soon. Tested transfer of Polar, MacCready, Volume Up/Down/Mute/UnMute, Vario mode, STF mode. Also checked audio. All looks/sounds good.

bomilkar commented 4 years ago

From the log:

$ ./variod -f -c /opt/conf/variod.conf
!! STAY in foreground !!
!! Using config file /opt/conf/variod.conf !!
Socket created ...
=========================================================================
Runtime Configuration:
----------------------
Vario:
  Deadband Low:                 -0.000000
  Deadband High:                0.000000
  Pulse Pause Length:           12288
  Pulse Pause Length Gain:      0.400000
  Base Frequency Positive:      500
  Base Frequency Negative:      500
Speed to fly:
  Deadband Low:                 -2.000000
  Deadband High:                2.000000
  Pulse Pause Length:           12288
  Pulse Pause Length Gain:      0.400000
  Base Frequency Positive:      500
  Base Frequency Negative:      500
=========================================================================
Connecting to pulseaudio...
Connection to pulseaudio established.
Waiting for incoming connections...
Connection accepted
Get Ballast Value: 1.052000
Get Ballast Value: 1.065000
Get Ballast Value: 1.078000
Get Ballast Value: 1.091000
Get Bugs Value: 0.950000
Get Polar RPO: 0.000121, -0.018032, 1.268928
Get McCready Value: 1.100000
Set STF Mode
Set Vario Mode
Toggle Mute
Volume down
Volume up
Volume up
Volume down
Volume down
Volume down
Volume down
Volume down
Volume down
Volume up
Volume up
Volume up
Volume up
Volume up
Volume up
Set STF Mode
Set Vario Mode
linuxianer99 commented 4 years ago

@bomilkar : Please correct things in #28 after merge