Corrected some typo
This commit is contained in:
parent
a4735a13f9
commit
fd7e278b84
|
|
@ -13,7 +13,7 @@ typedef struct motion_control_data_t {
|
|||
} motion_control_data_t;
|
||||
|
||||
// Init values for motion control
|
||||
void init_motion_control(void);
|
||||
void motion_control_init(void);
|
||||
// Update motion control buffer from motion control data and gyro data
|
||||
void i2c_update_motion_control(void);
|
||||
// Update servo motors from motion control data
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef GYRO_H
|
||||
#define GYRO_H
|
||||
|
||||
#define I2C_GYRO_ADDRESS 0x6b
|
||||
#define I2C_GYRO_ADDRESS 0x6B
|
||||
|
||||
typedef struct gyro_data_t {
|
||||
float x_offset, y_offset, z_offset;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#define I2C_MCP23017_ADDRESS 0x20
|
||||
|
||||
|
||||
typedef struct mcp23017_data_t {
|
||||
uint8_t gpio_state[2];
|
||||
} mcp23017_data_t;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#define GAIN_KD 10
|
||||
|
||||
void init_motion_control(void)
|
||||
void motion_control_init(void)
|
||||
{
|
||||
robot.motion_control_data.angle = 0;
|
||||
robot.motion_control_data.x_axis_speed = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue