How to get euler orientation from /mavros/imu/data

Hello !
I required the euler angles in ENU frame for plotting. I believe that /mavros/imu/data is in NED frame. I tried converting the quaternion from /mavros/imu/data to euler (ZYX). I then transformed the euler angles to ENU using rotation matrix. However my setpoints and these computed euler angles do not match. Any help is appreciated.
Thank you for your time on this !