Code: Init order

This commit is contained in:
2023-08-19 17:06:38 -03:00
parent aba6de8950
commit 9f7ef49391
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@@ -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.