My weird idea :
1. Make a-b a simple rotational ferromagnetic rod.
2. Use a coil to make an eletromagnet outside this rod.
3. Use the eletromagnet to control the rod's position when spinning.
4. Put another eletromagnet c-d at 90 degrees of a-b.
5. Put two more eletromagnets e-f and g-h at 45 degrees too.
This way we have four rods spinning ( a la Oryfreus ? ).
By applying some DC current to the coils, we can control the position of each
rod, imbalancing the mass to some direction.
The difficult part will be to build such a device ...
Regards,
Marcelo