Rework library without unix sockets for now
This commit is contained in:
parent
e9ae1a320a
commit
0bef6035ae
30 changed files with 987 additions and 136 deletions
31
server_v2/include/Robot.hpp
Normal file
31
server_v2/include/Robot.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef COMPLIB_SERVER_ROBOT_HPP
|
||||
#define COMPLIB_SERVER_ROBOT_HPP
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#define ROBOT_IR_SENSOR_COUNT 5
|
||||
#define ROBOT_IR_RATE_HZ 250
|
||||
|
||||
#define ROBOT_MOTOR_COUNT 4
|
||||
#define ROBOT_MOTOR_SPEED_CONTROL_KP 0.5
|
||||
#define ROBOT_MOTOR_SPEED_CONTROL_KI 5.0
|
||||
#define ROBOT_MOTOR_SPEED_CONTROL_KD 0.025
|
||||
#define ROBOT_MOTOR_SPEED_CONTROL_RAMP 100.0
|
||||
#define ROBOT_MOTOR_SPEED_CONTROL_RATE_HZ 250
|
||||
|
||||
#define ROBOT_ODOMETRY_CONTROLLER_RATE_HZ 250
|
||||
#define ROBOT_ODOMETRY_CONTROLLER_LEFT_PORT 3
|
||||
#define ROBOT_ODOMETRY_CONTROLLER_RIGHT_PORT 0
|
||||
#define ROBOT_ODOMETRY_CONTROLLER_LEFT_MULT 1.0
|
||||
#define ROBOT_ODOMETRY_CONTROLLER_RIGHT_MULT -1.0
|
||||
|
||||
#define ROBOT_ENCODER_RATE_HZ 250
|
||||
|
||||
#define ROBOT_WHEEL_CIRCUMFERENCE_MM (71.0 * M_PI)
|
||||
#define ROBOT_TICKS_PER_TURN (27.7 * 100.0)
|
||||
#define ROBOT_ARBOR_LENGTH_MM 139.0
|
||||
#define ROBOT_ARBOR_LENGTH_M (ROBOT_ARBOR_LENGTH_MM / 1000.0)
|
||||
#define ROBOT_TICKS_PER_METER (1000.0 / ROBOT_WHEEL_CIRCUMFERENCE_MM * ROBOT_TICKS_PER_TURN)
|
||||
|
||||
|
||||
#endif //COMPLIB_SERVER_ROBOT_HPP
|
Reference in a new issue