Seite 1 von 1

How to read number in data file and do calculation?

Verfasst: 16 Sep 2023, 08:41
von zhengtzer
Hi all ft member,

1. I am studying ft lesson plan on PID controller for line follower robot
lesson_plan.png (238.76 KiB) 265 mal betrachtet
2. i would like to try getting the last 3 position number, average it and feed it back into loop to tune robot
calculate_average.png (87.6 KiB) 265 mal betrachtet
My questions:
how to achieve getting last 3 number and average it out?