spins matched to kalmans c++ convention