Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions boards/drivers/include/MPU6500.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)();

Expand Down Expand Up @@ -225,4 +225,4 @@ namespace imu {

static void callback_thread_func_(void* arg);
};
}; // namespace imu
}; // namespace imu
4 changes: 2 additions & 2 deletions boards/drivers/include/heater.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading