Class member function as callback for interrupt

Ok, I get it, thanks again.

I'm planning to have several instances of the class. The first use of the class is a self-balancing motor with two motors, but I'd like to be able to eventually use it with more motors in the future (i.e. a 4WD car).

I've found this discussion in which you actually also participated and looks quite promising. I'll give it a try when I'm back home, but any other suggestion is welcome.