From 4761893cd93c07a62daf69df8e525af014008506 Mon Sep 17 00:00:00 2001 From: Devoalda <50709414+Devoalda@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:26:35 +0800 Subject: [PATCH] Added Car config (#16) * Ultrasonic Sensor + Car init obs struct * Line sensor update for integration * ultrasonic update for integration * Integrate Line and Ultraman * Added Car config --------- Co-authored-by: xypoon <2837264P@student.gla.ac.uk> --- frtos/config/car_config.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frtos/config/car_config.h diff --git a/frtos/config/car_config.h b/frtos/config/car_config.h new file mode 100644 index 0000000..ed37ac3 --- /dev/null +++ b/frtos/config/car_config.h @@ -0,0 +1,16 @@ +#ifndef CAR_CONFIG_H +#define CAR_CONFIG_H + +typedef struct s_obs_struct { + bool line_detected; + bool ultrasonic_detected; +} obs_t; + + +typedef struct +{ + obs_t *obs; + +} car_struct_t; + +#endif //CAR_CONFIG_H