flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
pid_controller.h File Reference
#include <stdint.h>
#include "../ptp_servo_types.h"

Go to the source code of this file.

Functions

void pid_ctrl_init ()
 
void pid_ctrl_deinit ()
 
void pid_ctrl_reset ()
 
float pid_ctrl_run (int32_t dt, PtpServoAuxInput *pAux)
 

Function Documentation

◆ pid_ctrl_deinit()

void pid_ctrl_deinit ( )

Deinitialize PID controller.

Definition at line 112 of file pid_controller.c.

◆ pid_ctrl_init()

void pid_ctrl_init ( )

Initialize PID controller.

Definition at line 104 of file pid_controller.c.

◆ pid_ctrl_reset()

void pid_ctrl_reset ( )

Reset PID controller.

Definition at line 118 of file pid_controller.c.

◆ pid_ctrl_run()

float pid_ctrl_run ( int32_t  dt,
PtpServoAuxInput pAux 
)

Run the PID controller.

Parameters
dttime error in nanoseconds
pAuxauxiliary synchronization cycle context data

Definition at line 123 of file pid_controller.c.