전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

DEV-13033 데이터시트(PDF) 6 Page - SparkFun Electronics

부품명 DEV-13033
상세설명  SparkFun Blocks for Intel짰 Edison - 9 Degrees of Freedom Block
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  SPARKFUN [SparkFun Electronics]
홈페이지  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-13033 데이터시트(HTML) 6 Page - SparkFun Electronics

  DEV-13033 Datasheet HTML 1Page - SparkFun Electronics DEV-13033 Datasheet HTML 2Page - SparkFun Electronics DEV-13033 Datasheet HTML 3Page - SparkFun Electronics DEV-13033 Datasheet HTML 4Page - SparkFun Electronics DEV-13033 Datasheet HTML 5Page - SparkFun Electronics DEV-13033 Datasheet HTML 6Page - SparkFun Electronics DEV-13033 Datasheet HTML 7Page - SparkFun Electronics DEV-13033 Datasheet HTML 8Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 6 / 8 page
background image
while ((newGyroData & newAccelData & newMagData) != true)
    { 
if (newAccelData != true)
      { 
        newAccelData = imu­>newXData();
      } 
if (newGyroData != true)
      { 
        newGyroData = imu­>newGData();
      } 
if (newMagData != true)
      { 
        newMagData = imu­>newMData(); // Temp data is collecte
d at the same
//  rate as magnetomete
r data.
      }  
    } 
    newAccelData = false;
    newMagData = false;
    newGyroData = false;
// Of course, we may care if an overflow occurred; we can 
check that
//  easily enough from an internal register on the part. T
here are functions
//  to check for overflow per device.
    overflow = imu­>xDataOverflow() |
               imu­>gDataOverflow() |
               imu­>mDataOverflow();
if (overflow)
    { 
      cout<<"WARNING: DATA OVERFLOW!!!"<<endl;
    } 
// Calling these functions causes the data to be read fro
m the IMU into
//  10 16­bit signed integer public variables, as seen bel
ow. There is no
//  automated check on whether the data is new; you need t
o do that
//  manually as above. Also, there's no check on overflo
w, so you may miss
//  a sample and not know it.
    imu­>readAccel();
    imu­>readMag();
    imu­>readGyro();
    imu­>readTemp();
// Print the unscaled 16­bit signed values.
    cout<<"­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­"<<endl;
    cout<<"Gyro x: "<<imu­>gx<<endl;
    cout<<"Gyro y: "<<imu­>gy<<endl;
    cout<<"Gyro z: "<<imu­>gz<<endl;
    cout<<"Accel x: "<<imu­>ax<<endl;
    cout<<"Accel y: "<<imu­>ay<<endl;
    cout<<"Accel z: "<<imu­>az<<endl;
    cout<<"Mag x: "<<imu­>mx<<endl;
    cout<<"Mag y: "<<imu­>my<<endl;
    cout<<"Mag z: "<<imu­>mz<<endl;
    cout<<"Temp: "<<imu­>temperature<<endl;
    cout<<"­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­"<<endl;
Page 6 of 8



Html Pages

1 2 3 4 5 6 7 8


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com