Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
Changes to add LUT use
Use of Clamp, MIN, MAX to reduce code space
Some minor logic changes to reduce code use and (IMO) make it easier to read

NOTE: Changed the pid calculation routine to return int32_t. It was using float, but no float types are used so it was a waste.  Since int32_t is used for internal variables, it makes sense to use it, and you can then at least down-cast it to smaller types.
  • Loading branch information
KennethSimpson authored Nov 17, 2023
1 parent a1eb13a commit 5df9e35
Showing 1 changed file with 233 additions and 332 deletions.
Loading

0 comments on commit 5df9e35

Please sign in to comment.