I have a ultrasonic ping sensor getting output from it in Python. This reading is in a
while True:
so that obviously never stops.
That data is set to a var called 'ping_out'. I need to get the last three readings from ping_out and average them so that I get a var called ping_average. How can I do this?
Thanks!