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: ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo
main.cpp
00001 #include "mbed.h" 00002 #include "Servo.h" 00003 //#include "rtos.h" 00004 //#include "PwmReader.h" 00005 //#include "PwmIn.h" 00006 #include "MainController.h" 00007 00008 Serial pc(USBTX, USBRX); 00009 Timer t; 00010 00011 int main() 00012 { 00013 t.start(); 00014 00015 MainController mainCtrl; 00016 00017 mainCtrl.start(); 00018 00019 while(true) { 00020 00021 pc.printf("frq: %f, vol: %f, amp: %f, rud: %f, dut: %f, t: %f\n", 00022 mainCtrl.getFrequency(), mainCtrl.getVolume(), mainCtrl.getAmplitude(), mainCtrl.getRudder(), mainCtrl.getDutyCycle(),t.read()); 00023 00024 wait_ms(100); 00025 } 00026 //t.stop(); 00027 //mainCtrl.stop(); 00028 }
Generated on Mon Jul 25 2022 21:18:46 by
1.7.2