16
Assignment 5 Due Tonight at 11:59 PM

Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Assignment  5  

Due  Tonight  at  11:59  PM  

Page 2: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Mo6on  Sensors  

I  couldn’t  think  of  a  clever  quip  this  week  

Page 3: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Mo6on  Sensors  

Page 4: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Not  Just  Games  

Page 5: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Coordinate  System  

Page 6: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Mo6on  Sensors  

•  Accelerometer  •  Gyroscope  •  Gravity  •  Linear  Accelera6on  •  Rota6on  Vector  

Page 7: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Accelerometer  

•  Measures  accelera6on  forces  on  each  axis  •  Always  hardware  based  •  Doesn’t  filter  out  gravity  •  Values  in  m/s2  

Page 8: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Gyroscope  

•  Measures  rate  of  rota6on  on  each  axis  •  Always  hardware  based  •  All  values  zero  at  rest  •  Measured  in  Rad/s  

Page 9: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Gravity  

•  Measures  the  force  of  gravity  along  each  axis  •  May  be  soRware  supported  using  accelerometer  and  gyroscope  

•  Magnitude  should  always  be  9.81  m/s2  

•  m/s2  

Page 10: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Linear  Accelera6on  

•  Measures  accelera6on  along  each  axis  EXCLUDING  gravity  

•  May  be  soRware  supported  via  Accelerometer  and  Gravity  sensors  

•  Measured  in  m/s2  

Page 11: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Rota6on  Vector  

•  Measures  components  of  rota6on  vector  •  Uses  a  slightly  different  coordinate  system  •  Unitless  (vector)  

Page 12: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Accessing  Sensors  

•  Accessed  via  SensorManager  •  All  represented  using  Sensor  class  and  accessed  via  SensorEventListener  

Page 13: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Processing  Sensor  Data  

•  All  sensors  provide  3  float  values.  •  Meaning  of  these  values  based  on  sensor.  

Page 14: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

High  Pass  Filter  

•  Sensors  can  have  lots  of  noise.  •  Filter  smoothes  out  highs  and  lows.  

Page 15: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

High  Pass  Filter  

•  Applies  a  filter  based  on  previous  values  •  Prevents  rapid  jumps  in  values  •  Overly  simple  smoothing  funciton  

Page 16: Assignment5)cs5957/media/Murdock 7... · Gravity) • Measures)the)force)of)gravity)along)each)axis) • May)be)soRware)supported)using) accelerometer)and)gyroscope) • Magnitude)should)always)be)9.81)m/s2

Ques6ons?