How do I download modules to the brain?

I’m using the GPS sensor, and it sometimes flickers to a different position. to fix this, I’m trying to take the last 20 values and use the mode of them as the real position. The problem is that none of the modules I tried to use are installed. does anyone know how to download modules?

I’m not sure exactly, but there’s something with the micro sd card you can do to have the program access things

seems like that would be a simple function to write, why import a module ?

anyway, see this, it will work for simple small modules, don’t try and import anything like NumPy, it won’t work.

Is that a challenge? :stuck_out_tongue:

Just trying to lower expectations.

Everything I’ve found to get the mode of a list uses either the statistics or counter module

Never mind, I managed to code my own mode calculation. It’s a bit slow, but it’ll work for this purpose.

A quick google turned up this, you could see how this compares to what you wrote. I have not tried any of this code.

just copy the one function you need from the source and add to your code.