Skip to content

Commit 619b458

Browse files
authored
Updated PID struct
Added deltaTime and lastTime to PID struct
1 parent 23df3fb commit 619b458

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ typedef struct {
5252
float derivative;
5353
float lastError;
5454
float threshold;
55+
int deltaTime;
56+
int lastTime;
5557
} pid;
5658

5759
#endif

0 commit comments

Comments
 (0)