You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
444 B
26 lines
444 B
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- |
|
|
|
/// @file PID.h |
|
/// @brief Generic PID algorithm, with EEPROM-backed storage of constants. |
|
|
|
#ifndef Trig_LUT_h |
|
#define Trig_LUT_h |
|
|
|
#include <stdlib.h> |
|
#include <avr/pgmspace.h> |
|
|
|
|
|
/// @class Trig_LUT |
|
/// @brief Simple look up table for Sin and Cos |
|
class Trig_LUT { |
|
public: |
|
|
|
Trig_LUT(){}; |
|
|
|
float sin_lut(int16_t angle); |
|
float cos_lut(int16_t angle); |
|
|
|
}; |
|
|
|
#endif |
|
|
|
|