diff --git a/boards/drivers/include/MPU6500.h b/boards/drivers/include/MPU6500.h index 9d90e8c6..15116838 100644 --- a/boards/drivers/include/MPU6500.h +++ b/boards/drivers/include/MPU6500.h @@ -144,13 +144,13 @@ namespace imu { - typedef struct { + struct mpu6500_init_t { bsp::SPIMaster* spi; bsp::GPIO* cs; bsp::GPIT* int_pin; bool use_mag = false; bool dma = true; - } mpu6500_init_t; + }; typedef void (*mpu6500_callback_t)(); @@ -225,4 +225,4 @@ namespace imu { static void callback_thread_func_(void* arg); }; -}; // namespace imu \ No newline at end of file +}; // namespace imu diff --git a/boards/drivers/include/heater.h b/boards/drivers/include/heater.h index a620d823..28e0957d 100644 --- a/boards/drivers/include/heater.h +++ b/boards/drivers/include/heater.h @@ -25,13 +25,13 @@ namespace driver { - typedef struct { + struct heater_init_t { bsp::PWM* pwm; float target_temp; float* pid_param = new float[3]{160, 0.1, 0}; float heater_I_limit = 300; float heater_output_limit = 500; - } heater_init_t; + }; class Heater { public: