calculate
Dependencies: mbed X_NUCLEO_IKS01A3 Mahony_Algorithm
main.cpp
00001 /** 00002 |**********************************************************************; 00003 * Project : Projektarbeit Systemtechnik PES4 00004 * 00005 * Program name : ................ 00006 * 00007 * Author : PES4 Team1 00008 * 00009 * Team : **Team 1** 00010 * Fabio Bernard 00011 * Lukas Egli 00012 * Matthias Ott 00013 * Pascal Novacki 00014 * Robin Wanner 00015 * Vincent Vescoli 00016 * Cyrill Zoller 00017 * 00018 * Date created : 20.02.2020 00019 * 00020 * Purpose : Main 00021 * 00022 |**********************************************************************; 00023 **/ 00024 00025 #include "mbed.h" 00026 #include "CalculateData.h" 00027 #include "Liste.h" 00028 00029 00030 //initialise DigitalIO 00031 DigitalOut myled(LED1); 00032 DigitalIn user_button(USER_BUTTON); 00033 00034 00035 //Generate object 00036 CalculateData calculate(D14, D15, D4, D5, A3, D6, A4); 00037 00038 00039 00040 00041 00042 int main(){ 00043 Liste myList; 00044 calculate.enable(); 00045 while(1){ 00046 /* 00047 calculate.getValue(&myList); 00048 printf("\t\tX\t\tY\t\tZ\r\n"); 00049 printf("ACC:\t\t%f\t%f\t%f\r\n", myList.accX, myList.accY, myList.accZ); 00050 printf("SPEED:\t\t%f\t%f\t%f\r\n", myList.speedX, myList.speedY, myList.speedZ); 00051 printf("POS:\t\t%f\t%f\t%f\r\n", myList.posX, myList.posY, myList.posZ); 00052 printf("\r\n\r\n-------------------------\r\n\r\n\r\n"); 00053 */calculate.update(); 00054 Thread::wait(100); 00055 } 00056 } 00057 00058
Generated on Tue Jul 26 2022 02:19:06 by 1.7.2