28 lines
474 B
C
28 lines
474 B
C
#include "motor_config.h"
|
|
#include "ultrasonic_sensor_config.h"
|
|
#include "magnetometer_config.h"
|
|
#include "line_sensor_config.h"
|
|
|
|
#ifndef CAR_CONFIG_H
|
|
#define CAR_CONFIG_H
|
|
|
|
#define PRIO (tskIDLE_PRIORITY + 1UL)
|
|
|
|
typedef struct s_obs_struct
|
|
{
|
|
bool line_detected;
|
|
bool ultrasonic_detected;
|
|
|
|
} obs_t;
|
|
|
|
typedef struct
|
|
{
|
|
obs_t *obs;
|
|
motor_t *p_left_motor;
|
|
motor_t *p_right_motor;
|
|
motor_pid_t *p_pid;
|
|
|
|
} car_struct_t;
|
|
|
|
#endif // CAR_CONFIG_H
|