Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-STM32F103C8T6 MPU6050_1
system.h
00001 //AnalogIn speed_in(PB_1); 00002 //AnalogIn turn_in(PB_0); 00003 00004 void system_init(){ 00005 max.speed = 1; 00006 max.accel = 2.2; 00007 max.eps = 10; 00008 da = max.accel*max.accel / max.speed * t_step;//0.05;//max a/2 sec 00009 00010 confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) 00011 //NVIC_SetPriority(TIM3_IRQn,255); 00012 sound_out.baud(9600); //(115200); 00013 sound_in.baud(9600); 00014 wifi.baud(921600); 00015 00016 motor_init(); 00017 serva_init(); 00018 echo_init(); 00019 gyro_init(); 00020 realtime_init(); 00021 //motion_init(); 00022 wifi_init(); 00023 glaz_init(); 00024 }
Generated on Thu Jul 28 2022 12:08:13 by
1.7.2