servo_dec.h
Go to the documentation of this file.
1 /*
2  Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * servo_dec.h
20  *
21  * Created on: 20 jan 2013
22  * Author: benjamin
23  */
24 
25 #ifndef SERVO_DEC_H_
26 #define SERVO_DEC_H_
27 
28 #include <stdint.h>
29 #include <conf_general.h>
30 
31 // Functions
32 void servodec_init(void (*d_func)(void));
33 void servodec_set_pulse_options(float start, float end, bool median_filter);
34 float servodec_get_servo(int servo_num);
35 uint32_t servodec_get_time_since_update(void);
36 float servodec_get_last_pulse_len(int servo_num);
37 
38 #endif /* SERVO_DEC_H_ */
float servodec_get_servo(int servo_num)
Definition: servo_dec.c:152
float servodec_get_last_pulse_len(int servo_num)
Definition: servo_dec.c:180
void servodec_set_pulse_options(float start, float end, bool median_filter)
Definition: servo_dec.c:137
uint32_t servodec_get_time_since_update(void)
Definition: servo_dec.c:167
void servodec_init(void(*d_func)(void))
Definition: servo_dec.c:114