{"id":303,"date":"2013-08-01T19:29:38","date_gmt":"2013-08-01T19:29:38","guid":{"rendered":"http:\/\/blog.daft-ideas.co.uk\/?p=303"},"modified":"2013-08-01T19:43:58","modified_gmt":"2013-08-01T19:43:58","slug":"uav-reading-sensor-data","status":"publish","type":"post","link":"https:\/\/blog.daft-ideas.co.uk\/2013\/08\/01\/uav-reading-sensor-data\/","title":{"rendered":"UAV, reading sensor data"},"content":{"rendered":"
A long time before we did our session where we controlled some servos, we had a session where we were reading sensor data.<\/p>\n
We’ve tried this a number of times, but this instance was where we actually started to get worthwhile data, and we could interpret it correctly.<\/p>\n
We are currently reading two sensors to find orientation data: the 3 axis gyroscope and the 3 axis accelerometer.<\/p>\n
I’ll cover the accelerometer first.<\/p>\n
We’re using a 3 axis\u00a0accelerometer\u00a0 which if read correctly can tell us the pitch and roll of the aircraft (actually, just the pitch and roll of the sensor, but the sensor will be built into the aircraft).<\/p>\n
Each axis in the accelerometer (we’ll call them accX, accY and accZ) tells us how pull that sensor is experiencing (at rest, this is due to gravity). We only need 1 axis to start with, to measure Pitch.<\/p>\n