Crate sogi_pll

Crate sogi_pll 

Source
Expand description

SOGI-PLL implementation

Based on: https://ieeexplore.ieee.org/document/1711988

Usage:

let mut pll = SogiPll::new(config);

// Call .update every sample_time s
let result = pll.update(measured_voltage);

Recommended parameters:

sogi_k: 1.0
pi_proportional_gain: 178.0,
pi_integral_gain: 0.0001
sample_rate > 1000Hz

K, Kp, Ki for 50Hz taken from here

Structsยง

PllConfig
Configuration for the SOGI-PLL
PllResult
Result returned by the SOGI-PLL
Sogi
SOGI implementation that uses third order integrators
SogiPll
SOGI-PLL implementation