A library for Silicon Sensing DMU02

Dependents:   DMUTest

Embed: (wiki syntax)

« Back to documentation index

DMU Class Reference

DMU Class Reference

A DMU interface for communicating with the Silicon Sensing DMU02 Dynamics Measurement Unit. More...

#include <DMU.h>

Public Member Functions

 DMU (PinName MOSI, PinName MISO, PinName SCLK, PinName S0, PinName S1, PinName S2)
 Creates a DMU interface for using regular mbed pins.
float acceleration (char axis)
 Return the acceleration in the direction of the selected axis.
float roll ()
 Return the roll.
float pitch ()
 Return the pitch.
float yaw ()
 Return the yaw.
void test ()
 forces the device to perform the built-in test

Detailed Description

A DMU interface for communicating with the Silicon Sensing DMU02 Dynamics Measurement Unit.

Definition at line 10 of file DMU.h.


Constructor & Destructor Documentation

DMU ( PinName  MOSI,
PinName  MISO,
PinName  SCLK,
PinName  S0,
PinName  S1,
PinName  S2 
)

Creates a DMU interface for using regular mbed pins.

Parameters:
MOSISPI MOSI line
MISOSPI MISO line
SCLKSPI SCLK line
S0-S2Select lines for X, Y and Z axi

Definition at line 3 of file DMU.cpp.


Member Function Documentation

float acceleration ( char  axis )

Return the acceleration in the direction of the selected axis.

Parameters:
axisThe axis you wish to query: x, y or z.

Definition at line 13 of file DMU.cpp.

float pitch (  )

Return the pitch.

Definition at line 45 of file DMU.cpp.

float roll (  )

Return the roll.

Definition at line 30 of file DMU.cpp.

void test (  )

forces the device to perform the built-in test

Definition at line 76 of file DMU.cpp.

float yaw (  )

Return the yaw.

Definition at line 60 of file DMU.cpp.