Robot Control Library
deprecated.h
Go to the documentation of this file.
1 /**
2  * <rc/deprecated.h>
3  *
4  * Deprecated functions that only exist for backwards compatability.
5  *
6  * @author James Strawson
7  * @date 4/26/2018
8  *
9  * @addtogroup Deprecated_Functions
10  * @ingroup Deprecated
11  * @{
12  */
13 
14 #ifndef RC_DEPRECATED_H
15 #define RC_DEPRECATED_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 
22 
23 int rc_initialize(void) __attribute__ ((deprecated));
24 
25 int rc_cleanup(void) __attribute__ ((deprecated));
26 
27 typedef enum rc_button_state_t {
31 
32 int rc_set_pause_pressed_func(void (*func)(void)) __attribute__ ((deprecated));
33 int rc_set_pause_released_func(void (*func)(void)) __attribute__ ((deprecated));
34 int rc_set_mode_pressed_func(void (*func)(void)) __attribute__ ((deprecated));
35 int rc_set_mode_released_func(void (*func)(void)) __attribute__ ((deprecated));
36 rc_button_state_t rc_get_pause_button(void) __attribute__ ((deprecated));
37 rc_button_state_t rc_get_mode_button(void) __attribute__ ((deprecated));
38 
39 
40 int rc_get_encoder_pos(int ch) __attribute__ ((deprecated));
41 int rc_set_encoder_pos(int ch, int value) __attribute__ ((deprecated));
42 
43 int rc_enable_motors(void) __attribute__ ((deprecated));
44 int rc_disable_motors(void) __attribute__ ((deprecated));
45 int rc_set_motor(int motor, float duty) __attribute__ ((deprecated));
46 int rc_set_motor_all(float duty) __attribute__ ((deprecated));
47 int rc_set_motor_free_spin(int motor) __attribute__ ((deprecated));
48 int rc_set_motor_free_spin_all(void) __attribute__ ((deprecated));
49 int rc_set_motor_brake(int motor) __attribute__ ((deprecated));
50 int rc_set_motor_brake_all(void) __attribute__ ((deprecated));
51 
52 
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif // RC_DEPRECATED_H
60 
61 /** @} end group deprecated*/
int rc_set_motor(int motor, float duty) __attribute__((deprecated))
int rc_set_motor_brake(int motor) __attribute__((deprecated))
int rc_cleanup(void) __attribute__((deprecated))
int rc_set_mode_pressed_func(void(*func)(void)) __attribute__((deprecated))
int rc_set_motor_brake_all(void) __attribute__((deprecated))
int rc_disable_motors(void) __attribute__((deprecated))
rc_button_state_t
Definition: deprecated.h:27
Definition: deprecated.h:28
rc_button_state_t rc_get_pause_button(void) __attribute__((deprecated))
int rc_set_pause_pressed_func(void(*func)(void)) __attribute__((deprecated))
Definition: deprecated.h:29
int rc_set_motor_all(float duty) __attribute__((deprecated))
int rc_initialize(void) __attribute__((deprecated))
int rc_set_encoder_pos(int ch, int value) __attribute__((deprecated))
int rc_set_pause_released_func(void(*func)(void)) __attribute__((deprecated))
int rc_set_motor_free_spin_all(void) __attribute__((deprecated))
int rc_get_encoder_pos(int ch) __attribute__((deprecated))
rc_button_state_t rc_get_mode_button(void) __attribute__((deprecated))
int rc_enable_motors(void) __attribute__((deprecated))
int rc_set_mode_released_func(void(*func)(void)) __attribute__((deprecated))
int rc_set_motor_free_spin(int motor) __attribute__((deprecated))