How to read number in data file and do calculation?

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
zhengtzer
Beiträge: 15
Registriert: 22 Aug 2023, 12:11

How to read number in data file and do calculation?

Beitrag von zhengtzer » 16 Sep 2023, 08:41

Hi all ft member,


1. I am studying ft lesson plan on PID controller for line follower robot
lesson_plan.png
lesson_plan.png (238.76 KiB) 4655 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
calculate_average.png (87.6 KiB) 4655 mal betrachtet
My questions:
how to achieve getting last 3 number and average it out?


thanks
Jonathan

Antworten