Rotary solenoids permit compact package design