imu: dos2unix
[fpv.git] / imuboard / MadgwickAHRS.h
index 018f34a..a613b99 100644 (file)
@@ -1,46 +1,46 @@
-/*\r
- * Copyright (c) 2014, Olivier MATZ <zer0@droids-corp.org>\r
- * Copyright (c) 2011, SOH Madgwick\r
- *\r
- *  This program is free software: you can redistribute it and/or modify\r
- *  it under the terms of the GNU General Public License as published by\r
- *  the Free Software Foundation, either version 3 of the License, or\r
- *  (at your option) any later version.\r
- *\r
- *  This program is distributed in the hope that it will be useful,\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- *  GNU General Public License for more details.\r
- *\r
- *  You should have received a copy of the GNU General Public License\r
- *  along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
- *\r
- */\r
-\r
-//=============================================================================\r
-// MadgwickAHRS.h\r
-//=============================================================================\r
-//\r
-// Implementation of Madgwick's IMU and AHRS algorithms.\r
-// See: http://www.x-io.co.uk/node/8#open_source_ahrs_and_imu_algorithms\r
-//\r
-// Date                        Author          Notes\r
-// 29/09/2011  SOH Madgwick    Initial release\r
-// 02/10/2011  SOH Madgwick    Optimised for reduced CPU load\r
-//\r
-//=============================================================================\r
-\r
-#ifndef MadgwickAHRS_h\r
-#define MadgwickAHRS_h\r
-\r
-#include "imu.h"\r
-\r
-extern volatile float beta;  // algorithm gain\r
-\r
-/* update quaternion structure using the new IMU infos */\r
-void MadgwickAHRSupdate(const struct imu_info *imu, struct quaternion *quat);\r
-\r
-/* update quaternion structure using the new IMU infos, without using magneto */\r
-void MadgwickAHRSupdateIMU(const struct imu_info *imu, struct quaternion *quat);\r
-\r
-#endif\r
+/*
+ * Copyright (c) 2014, Olivier MATZ <zer0@droids-corp.org>
+ * Copyright (c) 2011, SOH Madgwick
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+//=============================================================================
+// MadgwickAHRS.h
+//=============================================================================
+//
+// Implementation of Madgwick's IMU and AHRS algorithms.
+// See: http://www.x-io.co.uk/node/8#open_source_ahrs_and_imu_algorithms
+//
+// Date                        Author          Notes
+// 29/09/2011  SOH Madgwick    Initial release
+// 02/10/2011  SOH Madgwick    Optimised for reduced CPU load
+//
+//=============================================================================
+
+#ifndef MadgwickAHRS_h
+#define MadgwickAHRS_h
+
+#include "imu.h"
+
+extern volatile float beta;  // algorithm gain
+
+/* update quaternion structure using the new IMU infos */
+void MadgwickAHRSupdate(const struct imu_info *imu, struct quaternion *quat);
+
+/* update quaternion structure using the new IMU infos, without using magneto */
+void MadgwickAHRSupdateIMU(const struct imu_info *imu, struct quaternion *quat);
+
+#endif