Download fulltext - DiVA Portal
Transcript
44 the CHAPTER 4. SUGGESTED SOLUTION measurement[] array from being read from (by the imu_read() function mentioned above) at the same time as it is written to by this thread. When the 'A' is found, the loading of data into the measurement array is done by (at least) 32 sequential read operations on the serial device. The reason for using the readcond() function instead of read() was because an recommendation from the QNX online library reference [QSSL, 2007c] about readcond() : This function is an alternative to the read() function for terminal devices, providing additional arguments for timed read operations. These additional arguments can be used to minimize overhead when dealing with terminal devices. 4.1.3 IMU - Xsens (MTi) At ITK 3 a more advanced (and more expensive) IMU was acquired mainly to be shared among two master projects; the CyberBike and a project on development of an AUAV [see Bjørntvedt, 2007]. The MTi IMU from Xsens Motion Technologies is shown in Figure 4.3. Figure 4.3: The MTi from Xsens, with integrated DSP and magnetometer In [Xsens, 2006, chap. 1.1] it is stated: The MTi is a miniature, gyro-enhanced Attitude and Heading Reference System (AHRS). Its internal low-power signal processor provides drift-free 3D orientation as well as calibrated 3D acceleration, 3D rate of turn (rate gyro) and 3D earth-magnetic eld data. The MTi is an excellent measurement unit for stabilization and control of cameras, robots, vehicles and other equipment. 3 4 Department of Engineering Cybernetics Autonomus Unmanned Aerial Vehicle 4