How are quaternions specified?

As I understand it quaternions can either be specified with the scalar part first or last as according to

q = w + xi + yj + zk
or
q = xi +yj +zk + w  

where w is the scalar part. I was setting up my signals for my signal analyzer so I was wondering in which order RobotStudio defines quaternions for orienation, does Q1 or Q4 represent the scalar part w? 

Comments