[gimbal] add macros