uncrustify libraries/AP_Compass/AP_Compass_HIL.cpp

This commit is contained in:
uncrustify 2012-08-16 23:19:22 -07:00 committed by Pat Hickey
parent fe29885835
commit ad8df60749
1 changed files with 16 additions and 16 deletions

View File

@ -1,12 +1,12 @@
/* /*
AP_Compass_HIL.cpp - Arduino Library for HIL model of HMC5843 I2C Magnetometer * AP_Compass_HIL.cpp - Arduino Library for HIL model of HMC5843 I2C Magnetometer
Code by James Goppert. DIYDrones.com * Code by James Goppert. DIYDrones.com
*
This library is free software; you can redistribute it and / or * This library is free software; you can redistribute it and / or
modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
*/ */
#include "AP_Compass_HIL.h" #include "AP_Compass_HIL.h"
@ -15,18 +15,18 @@
bool AP_Compass_HIL::read() bool AP_Compass_HIL::read()
{ {
// values set by setHIL function // values set by setHIL function
last_update = micros(); // record time of update last_update = micros(); // record time of update
return true; return true;
} }
// Update raw magnetometer values from HIL data // Update raw magnetometer values from HIL data
// //
void AP_Compass_HIL::setHIL(float _mag_x, float _mag_y, float _mag_z) void AP_Compass_HIL::setHIL(float _mag_x, float _mag_y, float _mag_z)
{ {
Vector3f ofs = _offset.get(); Vector3f ofs = _offset.get();
mag_x = _mag_x + ofs.x; mag_x = _mag_x + ofs.x;
mag_y = _mag_y + ofs.y; mag_y = _mag_y + ofs.y;
mag_z = _mag_z + ofs.z; mag_z = _mag_z + ofs.z;
healthy = true; healthy = true;
} }