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.
main.cpp
- Committer:
- DanielleKruijver
- Date:
- 2019-04-04
- Revision:
- 0:785972ab5892
- Child:
- 1:822c609fb2ce
File content as of revision 0:785972ab5892:
#include "mbed.h" #include "rtos.h" #include "Daan_Test1_maxon.h" RawSerial pc(SERIAL_TX,SERIAL_RX); CAN can(PB_5,PB_6); //NOG CHECKEN!!! EPOS epos; Thread thread; int main() { pc.baud(921600); can.frequency(250000); //NOG AANPASSEN IN EPOS COMPUTER PROGRAMMA ZODAT DE CAN FREQUENCY OP MOTORCONTROLLER OVEREENKOMT MET DIE VAN DE MASTER!! -> value 3 pc.printf("startup: \r\n"); thread.start(&epos,&EPOS::Homing); Thread::wait(5); //maak specifier aan = commando om iets te doen //EPOS * daan = new EPOS; //while (N<100){ // daan->EPOS(); // N = N+1; //} }