Changeset 103 in flair-src for trunk/lib/FlairSensorActuator
- Timestamp:
- Oct 11, 2016, 12:07:16 PM (8 years ago)
- Location:
- trunk/lib/FlairSensorActuator/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Gx3_25_imu.cpp
r102 r103 35 35 36 36 if (command == EulerAnglesAndAngularRates) { 37 37 Printf("Gx3_25_imu enabling EulerAnglesAndAngularRates\n"); 38 38 } else if (command == AccelerationAngularRateAndOrientationMatrix) { 39 //Thread::Err("oneaxis rotation of rotation matrix is not yet implemented\n");39 Printf("Gx3_25_imu enabling AccelerationAngularRateAndOrientationMatrix\n"); 40 40 } else if (command == Quaternion) { 41 41 Printf("Gx3_25_imu enabling Quaternion\n"); 42 42 } else { 43 43 Thread::Err("command not supported (%i)\n", command); -
trunk/lib/FlairSensorActuator/src/Gx3_25_imu_impl.cpp
r102 r103 118 118 SetContinuousMode(command); 119 119 120 //_printf("firmware version: %i\n",get_firmware_number());121 122 120 while (!self->ToBeStopped()) { 123 121 if (command == Gx3_25_imu::EulerAnglesAndAngularRates) { … … 352 350 command[5] = rate & 0xff; // data rate LSB 353 351 result = 0; 354 if (disable_magn->IsChecked() == true) 355 result |= 0x01; 356 if (disable_north_comp->IsChecked() == true) 357 result |= 0x04; 358 if (disable_grav_comp->IsChecked() == true) 359 result |= 0x08; 360 352 if (disable_magn->IsChecked() == true) result |= 0x01; 353 if (disable_north_comp->IsChecked() == true) result |= 0x04; 354 if (disable_grav_comp->IsChecked() == true) result |= 0x08; 355 if (this->command == Gx3_25_imu::Quaternion) result |= 0x10;//enable quaternion 361 356 command[6] = result; 357 362 358 result = 0x01; // Calculate orientation 363 359 if (coning->IsChecked() == true)
Note:
See TracChangeset
for help on using the changeset viewer.