svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Committer:
dima285
Date:
Sat Mar 23 16:38:44 2019 +0000
Revision:
20:e73f49ba5001
Parent:
17:bd6b6ac89e0e
Child:
22:14e85f2068c7
prost

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Stas285 1:e2a6e523bf1f 1 //AnalogIn speed_in(PB_1);
Stas285 1:e2a6e523bf1f 2 //AnalogIn turn_in(PB_0);
Stas285 0:e9488589a8ee 3
Stas285 0:e9488589a8ee 4 void system_init(){
dima285 20:e73f49ba5001 5 max.speed = 1;
dima285 20:e73f49ba5001 6 max.accel = 2;
dima285 20:e73f49ba5001 7 max.eps = 10;
dima285 20:e73f49ba5001 8 da = max.accel*max.accel / max.speed * t_step;//0.05;//max a/2 sec
dima285 20:e73f49ba5001 9
Stas285 0:e9488589a8ee 10 confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock)
Stas285 4:904b737ef08a 11 //NVIC_SetPriority(TIM3_IRQn,255);
Stas285 15:960b922433d1 12 sound_out.baud(9600); //(115200);
Stas285 15:960b922433d1 13 sound_in.baud(9600);
Stas285 3:8e8458f45d19 14 wifi.baud(921600);
Stas285 0:e9488589a8ee 15
Stas285 0:e9488589a8ee 16 motor_init();
Stas285 0:e9488589a8ee 17 serva_init();
Stas285 0:e9488589a8ee 18 echo_init();
Stas285 4:904b737ef08a 19 gyro_init();
Stas285 0:e9488589a8ee 20 realtime_init();
Stas285 15:960b922433d1 21 //motion_init();
Stas285 0:e9488589a8ee 22 wifi_init();
dima285 17:bd6b6ac89e0e 23 glaz_init();
Stas285 0:e9488589a8ee 24 }