output only raw data (acceleration, anguler rate, geomagnetism, air pressure)
Dependencies: mbed SDFileSystem ConfigFile
Diff: Vector/Vector.cpp
- Revision:
- 13:df1e8a650185
- Parent:
- 9:6d4578dcc1ed
- Child:
- 23:79cdc1432160
--- a/Vector/Vector.cpp Tue Jun 16 17:04:58 2015 +0000 +++ b/Vector/Vector.cpp Fri Jun 19 01:08:35 2015 +0000 @@ -85,6 +85,10 @@ components[dimNo-1] = val; } +void Vector::SetComps(float* pComps) { + memcpy(components, pComps, sizeof(float) * dim); +} + float Vector::GetNorm() const { float norm = 0.0f; for (int i = 0; i < dim; i++) {