Right now I use MAVRates[stream_num] on the stream_trigger function and stream number comes from the enum values. So the MavRates indexes must be in synk with the enum values that is why I had to define my own. I agree it is ugly but I don't see a bug there.