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 PD controller.

Definition at line 90 of file pid_controller.c.

◆ pid_ctrl_init()

void pid_ctrl_init ( )

Initalize PD controller.

Definition at line 82 of file pid_controller.c.

◆ pid_ctrl_reset()

void pid_ctrl_reset ( )

Reset PD controller.

Definition at line 96 of file pid_controller.c.

◆ pid_ctrl_run()

float pid_ctrl_run ( int32_t  dt,
PtpServoAuxInput pAux 
)

Run the PD controller.

Parameters
dttime error in nanoseconds
pAuxauxiliary synchronization cycle context data

Definition at line 101 of file pid_controller.c.