Code: Init order
This commit is contained in:
BIN
Code/Filter.vi
BIN
Code/Filter.vi
Binary file not shown.
@@ -79,13 +79,13 @@ void Robot::init(){
|
||||
DWT->CYCCNT = 0; // reset the counter
|
||||
DWT->CTRL |= 1 ; // enable the counter
|
||||
debug.info("Init DWT end");
|
||||
debug.info("Init ESP8266 begin");
|
||||
HAL_Delay(10000);
|
||||
debug.info("Init ESP8266 end");
|
||||
debug.info("Init IMU begin");
|
||||
imu0.setup(0x68, MPU9250Setting(), &hi2c1);
|
||||
imu0.calibrateAccelGyro();
|
||||
debug.info("Init IMU end");
|
||||
debug.info("Init ESP8266 begin");
|
||||
HAL_Delay(10000);
|
||||
debug.info("Init ESP8266 end");
|
||||
motor0.setEncoder(&encoder0);
|
||||
motor1.setEncoder(&encoder1);
|
||||
motor0.kp = 1.3016/CONVERSION;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user