Merged in f5soh/librepilot/LP-607_world_mag_model_2015v2 (pull request #526)
[librepilot.git] / flight / libraries / math / sin_lookup.h
blob8c10219a32bc7034c682c30309f2d34dc92e5783
1 /**
2 ******************************************************************************
3 * @addtogroup OpenPilot Math Utilities
4 * @{
5 * @addtogroup Sine and cosine methods that use a cached lookup table
6 * @{
8 * @file sin_lookup.h
9 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
10 * @brief Sine lookup table from flash with 1 degree resolution
12 * @see The GNU Public License (GPL) Version 3
14 *****************************************************************************/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 * for more details.
26 * You should have received a copy of the GNU General Public License along
27 * with this program; if not, write to the Free Software Foundation, Inc.,
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 #ifndef SIN_LOOKUP_H
32 #define SIN_LOOKUP_H
34 int sin_lookup_initalize();
35 float sin_lookup_deg(float angle);
36 float cos_lookup_deg(float angle);
37 float sin_lookup_rad(float angle);
38 float cos_lookup_rad(float angle);
40 #endif