I watched other videos on the channel. It is very interesting how the external speed sensor is implemented.
Since I am going to connect the speed sensor to the PPM input, I tried to use your code for PAS, slightly changing it. The RPM values were very approximate, most likely due to the fact that I do not understand lisp