#ifndef RC_BALANCE_CONFIG
#define RC_BALANCE_CONFIG
#define SAMPLE_RATE_HZ 100
#define DT 0.01
#define BOARD_MOUNT_ANGLE 0.49
#define GEARBOX 35.577
#define ENCODER_RES 60
#define WHEEL_RADIUS_M 0.034
#define TRACK_WIDTH_M 0.035
#define V_NOMINAL 7.4
#define D1_GAIN 1.05
#define D1_ORDER 2
#define D1_NUM {-4.945, 8.862, -3.967}
#define D1_DEN { 1.000, -1.481, 0.4812}
#define D1_NUM_LEN 3
#define D1_DEN_LEN 3
#define D1_SATURATION_TIMEOUT 0.4
#define D2_GAIN 0.9
#define D2_ORDER 2
#define D2_NUM {0.18856, -0.37209, 0.18354}
#define D2_DEN {1.00000, -1.86046, 0.86046}
#define D2_NUM_LEN 3
#define D2_DEN_LEN 3
#define THETA_REF_MAX 0.33
#define D3_KP 1.0
#define D3_KI 0.3
#define D3_KD 0.05
#define STEERING_INPUT_MAX 0.5
#define MOTOR_CHANNEL_L 3
#define MOTOR_CHANNEL_R 2
#define MOTOR_POLARITY_L 1
#define MOTOR_POLARITY_R -1
#define ENCODER_CHANNEL_L 3
#define ENCODER_CHANNEL_R 2
#define ENCODER_POLARITY_L 1
#define ENCODER_POLARITY_R -1
#define DRIVE_RATE_NOVICE 16
#define TURN_RATE_NOVICE 6
#define DRIVE_RATE_ADVANCED 26
#define TURN_RATE_ADVANCED 10
#define DSM_DRIVE_POL 1
#define DSM_TURN_POL 1
#define DSM_DRIVE_CH 3
#define DSM_TURN_CH 2
#define DSM_DEAD_ZONE 0.04
#define BATTERY_CHECK_HZ 5
#define SETPOINT_MANAGER_HZ 100
#define PRINTF_HZ 50
#define TIP_ANGLE 0.85
#define START_ANGLE 0.3
#define START_DELAY 0.4
#define PICKUP_DETECTION_TIME 0.6
#define ENABLE_POSITION_HOLD 1
#define SOFT_START_SEC 0.7
#endif