-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcontrol.h
More file actions
41 lines (37 loc) · 1.16 KB
/
control.h
File metadata and controls
41 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __CONTROL_H
#define __CONTROL_H
#include "mmlib/encoder.h"
#include "mmlib/hmi.h"
#include "mmlib/speed.h"
#include "mmlib/walls.h"
#include "motor.h"
#include "setup.h"
#include "voltage.h"
void side_sensors_close_control(bool value);
void side_sensors_far_control(bool value);
void front_sensors_control(bool value);
void diagonal_sensors_control(bool value);
void enable_walls_control(void);
void disable_walls_control(void);
bool collision_detected(void);
void reset_collision_detection(void);
void reset_control_errors(void);
void reset_control_speed(void);
void reset_control_all(void);
void enable_motor_control(void);
void disable_motor_control(void);
void reset_motion(void);
float get_left_motor_voltage(void);
float get_right_motor_voltage(void);
int32_t get_left_pwm(void);
int32_t get_right_pwm(void);
float get_target_linear_speed(void);
float get_ideal_linear_speed(void);
float get_ideal_angular_speed(void);
float get_measured_linear_speed(void);
float get_measured_angular_speed(void);
void motor_control(void);
void set_target_linear_speed(float speed);
void set_ideal_angular_speed(float speed);
void update_ideal_linear_speed(void);
#endif /* __CONTROL_H */