working version with calibration done

Fork of Eurobot2013 by Oskar Weigl

Committer:
sv
Date:
Wed Nov 07 14:37:35 2012 +0000
Revision:
1:6799c07fe510
Preliminary copy of 2012 code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sv 1:6799c07fe510 1 /*
sv 1:6799c07fe510 2 * Tiny Vector Matrix Library
sv 1:6799c07fe510 3 * Dense Vector Matrix Libary of Tiny size using Expression Templates
sv 1:6799c07fe510 4 *
sv 1:6799c07fe510 5 * Copyright (C) 2001 - 2003 Olaf Petzold <opetzold@users.sourceforge.net>
sv 1:6799c07fe510 6 *
sv 1:6799c07fe510 7 * This library is free software; you can redistribute it and/or
sv 1:6799c07fe510 8 * modify it under the terms of the GNU Lesser General Public
sv 1:6799c07fe510 9 * License as published by the Free Software Foundation; either
sv 1:6799c07fe510 10 * version 2.1 of the License, or (at your option) any later version.
sv 1:6799c07fe510 11 *
sv 1:6799c07fe510 12 * This library is distributed in the hope that it will be useful,
sv 1:6799c07fe510 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
sv 1:6799c07fe510 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
sv 1:6799c07fe510 15 * Lesser General Public License for more details.
sv 1:6799c07fe510 16 *
sv 1:6799c07fe510 17 * You should have received a copy of the GNU Lesser General Public
sv 1:6799c07fe510 18 * License along with this library; if not, write to the Free Software
sv 1:6799c07fe510 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
sv 1:6799c07fe510 20 *
sv 1:6799c07fe510 21 * $Id: config-vc71.h.in,v 1.2 2004-11-04 16:47:12 opetzold Exp $
sv 1:6799c07fe510 22 */
sv 1:6799c07fe510 23
sv 1:6799c07fe510 24 #ifndef TVMET_CONFIG_VC71_H
sv 1:6799c07fe510 25 #define TVMET_CONFIG_VC71_H
sv 1:6799c07fe510 26
sv 1:6799c07fe510 27
sv 1:6799c07fe510 28 /*******************************************************************
sv 1:6799c07fe510 29 * equivalent hand made header to configure.ac's autoheader.
sv 1:6799c07fe510 30 ******************************************************************/
sv 1:6799c07fe510 31
sv 1:6799c07fe510 32
sv 1:6799c07fe510 33 /* define if the compiler has complex<T> */
sv 1:6799c07fe510 34 #ifndef TVMET_HAVE_COMPLEX
sv 1:6799c07fe510 35 #define TVMET_HAVE_COMPLEX 1
sv 1:6799c07fe510 36 #endif
sv 1:6799c07fe510 37
sv 1:6799c07fe510 38 /* define if the compiler has complex math functions */
sv 1:6799c07fe510 39 #ifndef TVMET_HAVE_COMPLEX_MATH1
sv 1:6799c07fe510 40 #define TVMET_HAVE_COMPLEX_MATH1 1
sv 1:6799c07fe510 41 #endif
sv 1:6799c07fe510 42
sv 1:6799c07fe510 43 /* define if the compiler has more complex math functions */
sv 1:6799c07fe510 44 /* #undef TVMET_HAVE_COMPLEX_MATH2 */
sv 1:6799c07fe510 45
sv 1:6799c07fe510 46 /* Define to 1 if you have the <dlfcn.h> header file. */
sv 1:6799c07fe510 47 #ifdef TVMET_HAVE_DLFCN_H
sv 1:6799c07fe510 48 #undef TVMET_HAVE_DLFCN_H
sv 1:6799c07fe510 49 #endif
sv 1:6799c07fe510 50
sv 1:6799c07fe510 51 /* Define to 1 if you have the `floor' function. */
sv 1:6799c07fe510 52 #ifndef TVMET_HAVE_FLOOR
sv 1:6799c07fe510 53 #define TVMET_HAVE_FLOOR 1
sv 1:6799c07fe510 54 #endif
sv 1:6799c07fe510 55
sv 1:6799c07fe510 56 /* Define if the compiler supports IEEE math library */
sv 1:6799c07fe510 57 #ifndef TVMET_HAVE_IEEE_MATH
sv 1:6799c07fe510 58 #define TVMET_HAVE_IEEE_MATH 1
sv 1:6799c07fe510 59 #endif
sv 1:6799c07fe510 60
sv 1:6799c07fe510 61 /* Define to 1 if you have the <inttypes.h> header file. */
sv 1:6799c07fe510 62 #ifdef TVMET_HAVE_INTTYPES_H
sv 1:6799c07fe510 63 #undef TVMET_HAVE_INTTYPES_H
sv 1:6799c07fe510 64 #endif
sv 1:6799c07fe510 65
sv 1:6799c07fe510 66 /* Define to 1 if you have the `dl' library (-ldl). */
sv 1:6799c07fe510 67 #ifdef TVMET_HAVE_LIBDL
sv 1:6799c07fe510 68 #undef TVMET_HAVE_LIBDL
sv 1:6799c07fe510 69 #endif
sv 1:6799c07fe510 70
sv 1:6799c07fe510 71 /* Define to 1 if long double works and has more range or precision than
sv 1:6799c07fe510 72 double. */
sv 1:6799c07fe510 73 #ifndef TVMET_HAVE_LONG_DOUBLE
sv 1:6799c07fe510 74 #define TVMET_HAVE_LONG_DOUBLE 1
sv 1:6799c07fe510 75 #endif
sv 1:6799c07fe510 76
sv 1:6799c07fe510 77 /* Define if the compiler supports the long_long type */
sv 1:6799c07fe510 78 // enable MS extension for long long
sv 1:6799c07fe510 79 #ifndef TVMET_HAVE_LONG_LONG
sv 1:6799c07fe510 80 #define TVMET_HAVE_LONG_LONG 1
sv 1:6799c07fe510 81 #endif
sv 1:6799c07fe510 82
sv 1:6799c07fe510 83 /* Define to 1 if you have the <memory.h> header file. */
sv 1:6799c07fe510 84 #ifndef TVMET_HAVE_MEMORY_H
sv 1:6799c07fe510 85 #define TVMET_HAVE_MEMORY_H 1
sv 1:6799c07fe510 86 #endif
sv 1:6799c07fe510 87
sv 1:6799c07fe510 88 /* Define if the compiler supports the mutable keyword */
sv 1:6799c07fe510 89 #ifndef TVMET_HAVE_MUTABLE
sv 1:6799c07fe510 90 #define TVMET_HAVE_MUTABLE 1
sv 1:6799c07fe510 91 #endif
sv 1:6799c07fe510 92
sv 1:6799c07fe510 93 /* Define if the compiler implements namespaces */
sv 1:6799c07fe510 94 #ifndef TVMET_HAVE_NAMESPACES
sv 1:6799c07fe510 95 #define TVMET_HAVE_NAMESPACES 1
sv 1:6799c07fe510 96 #endif
sv 1:6799c07fe510 97
sv 1:6799c07fe510 98 /* Define if the compiler supports partial specialization */
sv 1:6799c07fe510 99 #ifndef TVMET_HAVE_PARTIAL_SPECIALIZATION
sv 1:6799c07fe510 100 #define TVMET_HAVE_PARTIAL_SPECIALIZATION 1
sv 1:6799c07fe510 101 #endif
sv 1:6799c07fe510 102
sv 1:6799c07fe510 103 /* Define to 1 if you have the `pow' function. */
sv 1:6799c07fe510 104 #ifndef TVMET_HAVE_POW
sv 1:6799c07fe510 105 #define TVMET_HAVE_POW 1
sv 1:6799c07fe510 106 #endif
sv 1:6799c07fe510 107
sv 1:6799c07fe510 108 /* Define to 1 if you have the `rint' function. */
sv 1:6799c07fe510 109
sv 1:6799c07fe510 110 #ifdef TVMET_HAVE_RINT
sv 1:6799c07fe510 111 #undef TVMET_HAVE_RINT
sv 1:6799c07fe510 112 #endif
sv 1:6799c07fe510 113
sv 1:6799c07fe510 114 /* Define to 1 if you have the `sqrt' function. */
sv 1:6799c07fe510 115 #ifndef TVMET_HAVE_SQRT
sv 1:6799c07fe510 116 #define TVMET_HAVE_SQRT 1
sv 1:6799c07fe510 117 #endif
sv 1:6799c07fe510 118
sv 1:6799c07fe510 119 /* Define to 1 if stdbool.h conforms to C99. */
sv 1:6799c07fe510 120 /* #undef TVMET_HAVE_STDBOOL_H */
sv 1:6799c07fe510 121
sv 1:6799c07fe510 122 /* Define to 1 if you have the <stdint.h> header file. */
sv 1:6799c07fe510 123 #ifdef TVMET_HAVE_STDINT_H
sv 1:6799c07fe510 124 #undef TVMET_HAVE_STDINT_H
sv 1:6799c07fe510 125 #endif
sv 1:6799c07fe510 126
sv 1:6799c07fe510 127 /* Define to 1 if you have the <stdlib.h> header file. */
sv 1:6799c07fe510 128 #ifndef TVMET_HAVE_STDLIB_H
sv 1:6799c07fe510 129 #define TVMET_HAVE_STDLIB_H 1
sv 1:6799c07fe510 130 #endif
sv 1:6799c07fe510 131
sv 1:6799c07fe510 132 /* Define to 1 if you have the <strings.h> header file. */
sv 1:6799c07fe510 133 #ifdef TVMET_HAVE_STRINGS_H
sv 1:6799c07fe510 134 #undef TVMET_HAVE_STRINGS_H
sv 1:6799c07fe510 135 #endif
sv 1:6799c07fe510 136
sv 1:6799c07fe510 137 /* Define to 1 if you have the <string.h> header file. */
sv 1:6799c07fe510 138 #ifndef TVMET_HAVE_STRING_H
sv 1:6799c07fe510 139 #define TVMET_HAVE_STRING_H 1
sv 1:6799c07fe510 140 #endif
sv 1:6799c07fe510 141
sv 1:6799c07fe510 142 /* Define if the compiler supports SYSV math library */
sv 1:6799c07fe510 143 /* #undef TVMET_HAVE_SYSV_MATH */
sv 1:6799c07fe510 144
sv 1:6799c07fe510 145 /* Define to 1 if you have the <sys/stat.h> header file. */
sv 1:6799c07fe510 146 #ifdef TVMET_HAVE_SYS_STAT_H
sv 1:6799c07fe510 147 #undef TVMET_HAVE_SYS_STAT_H
sv 1:6799c07fe510 148 #endif
sv 1:6799c07fe510 149
sv 1:6799c07fe510 150 /* Define to 1 if you have the <sys/time.h> header file. */
sv 1:6799c07fe510 151 #ifdef TVMET_HAVE_SYS_TIME_H
sv 1:6799c07fe510 152 #undef TVMET_HAVE_SYS_TIME_H
sv 1:6799c07fe510 153 #endif
sv 1:6799c07fe510 154
sv 1:6799c07fe510 155 /* Define to 1 if you have the <sys/types.h> header file. */
sv 1:6799c07fe510 156 #ifdef TVMET_HAVE_SYS_TYPES_H
sv 1:6799c07fe510 157 #undef TVMET_HAVE_SYS_TYPES_H
sv 1:6799c07fe510 158 #endif
sv 1:6799c07fe510 159
sv 1:6799c07fe510 160 /* Define if the compiler recognizes typename */
sv 1:6799c07fe510 161 #ifndef TVMET_HAVE_TYPENAME
sv 1:6799c07fe510 162 #define TVMET_HAVE_TYPENAME 1
sv 1:6799c07fe510 163 #endif
sv 1:6799c07fe510 164
sv 1:6799c07fe510 165 /* Define to 1 if you have the <unistd.h> header file. */
sv 1:6799c07fe510 166 #ifdef TVMET_HAVE_UNISTD_H
sv 1:6799c07fe510 167 #undef TVMET_HAVE_UNISTD_H
sv 1:6799c07fe510 168 #endif
sv 1:6799c07fe510 169
sv 1:6799c07fe510 170 /* Define to 1 if the system has the type `_Bool'. */
sv 1:6799c07fe510 171 /* #undef TVMET_HAVE__BOOL */
sv 1:6799c07fe510 172
sv 1:6799c07fe510 173 /* Define to the address where bug reports for this package should be sent. */
sv 1:6799c07fe510 174 #ifndef TVMET_PACKAGE_BUGREPORT
sv 1:6799c07fe510 175 #define TVMET_PACKAGE_BUGREPORT "opetzold@users.sourceforge.net"
sv 1:6799c07fe510 176 #endif
sv 1:6799c07fe510 177
sv 1:6799c07fe510 178 /* Define to the full name of this package. */
sv 1:6799c07fe510 179 #ifndef TVMET_PACKAGE_NAME
sv 1:6799c07fe510 180 #define TVMET_PACKAGE_NAME "tvmet"
sv 1:6799c07fe510 181 #endif
sv 1:6799c07fe510 182
sv 1:6799c07fe510 183 /* Define to the full name and version of this package. */
sv 1:6799c07fe510 184 #ifndef TVMET_PACKAGE_STRING
sv 1:6799c07fe510 185 #define TVMET_PACKAGE_STRING "tvmet 1.7.2"
sv 1:6799c07fe510 186 #endif
sv 1:6799c07fe510 187
sv 1:6799c07fe510 188 /* Define to the one symbol short name of this package. */
sv 1:6799c07fe510 189 #ifndef TVMET_PACKAGE_TARNAME
sv 1:6799c07fe510 190 #define TVMET_PACKAGE_TARNAME "tvmet"
sv 1:6799c07fe510 191 #endif
sv 1:6799c07fe510 192
sv 1:6799c07fe510 193 /* Define to the version of this package. */
sv 1:6799c07fe510 194 #ifndef TVMET_PACKAGE_VERSION
sv 1:6799c07fe510 195 #define TVMET_PACKAGE_VERSION "1.7.2"
sv 1:6799c07fe510 196 #endif
sv 1:6799c07fe510 197
sv 1:6799c07fe510 198 /* Define to 1 if you have the ANSI C header files. */
sv 1:6799c07fe510 199 #ifndef TVMET_STDC_HEADERS
sv 1:6799c07fe510 200 #define TVMET_STDC_HEADERS 1
sv 1:6799c07fe510 201 #endif
sv 1:6799c07fe510 202
sv 1:6799c07fe510 203 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
sv 1:6799c07fe510 204 /* #undef TVMET_TM_IN_SYS_TIME */
sv 1:6799c07fe510 205
sv 1:6799c07fe510 206 /* Define to empty if `const' does not conform to ANSI C. */
sv 1:6799c07fe510 207 /* #undef _tvmet_const */
sv 1:6799c07fe510 208
sv 1:6799c07fe510 209 /* Define to `__inline__' or `__inline' if that's what the C compiler
sv 1:6799c07fe510 210 calls it, or to nothing if 'inline' is not supported under any name. */
sv 1:6799c07fe510 211 #ifndef __cplusplus
sv 1:6799c07fe510 212 /* #undef _tvmet_inline */
sv 1:6799c07fe510 213 #endif
sv 1:6799c07fe510 214
sv 1:6799c07fe510 215 /* Define to equivalent of C99 restrict keyword, or to nothing if this is not
sv 1:6799c07fe510 216 supported. Do not define if restrict is supported directly. */
sv 1:6799c07fe510 217 // unfortunally, VC++ 7.1 doesn't have restrict.
sv 1:6799c07fe510 218 #ifndef _tvmet_restrict
sv 1:6799c07fe510 219 #define _tvmet_restrict
sv 1:6799c07fe510 220 #endif
sv 1:6799c07fe510 221
sv 1:6799c07fe510 222 /* Define to `unsigned' if <sys/types.h> does not define. */
sv 1:6799c07fe510 223 /* #undef _tvmet_size_t */
sv 1:6799c07fe510 224
sv 1:6799c07fe510 225
sv 1:6799c07fe510 226
sv 1:6799c07fe510 227 /*******************************************************************
sv 1:6799c07fe510 228 * tvmet's config for special handling on MS VC
sv 1:6799c07fe510 229 ******************************************************************/
sv 1:6799c07fe510 230
sv 1:6799c07fe510 231
sv 1:6799c07fe510 232 #if defined(_MSC_VER)
sv 1:6799c07fe510 233
sv 1:6799c07fe510 234 /* The undefined case of TVMET_CXX_ALWAYS_INLINE is handled inside
sv 1:6799c07fe510 235 * tvmet.h, so there there is no need to do this here! */
sv 1:6799c07fe510 236
sv 1:6799c07fe510 237 #else // !defined(_MSC_VER)
sv 1:6799c07fe510 238
sv 1:6799c07fe510 239 // paranoia
sv 1:6799c07fe510 240 # warning "config header for MS VC 7.1 included without defined _MSC_VER"
sv 1:6799c07fe510 241
sv 1:6799c07fe510 242 #endif
sv 1:6799c07fe510 243
sv 1:6799c07fe510 244 #endif // TVMET_CONFIG_VC71_H
sv 1:6799c07fe510 245
sv 1:6799c07fe510 246 // Local Variables:
sv 1:6799c07fe510 247 // mode:C++
sv 1:6799c07fe510 248 // End:
sv 1:6799c07fe510 249 // LocalWords: autoheader