new and improved mode control
drop random unused buffers, change control request type
move all device config into fw
tweaks for robustness
Windows doesn't have M_PI