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-05
- Revision:
- 1:822c609fb2ce
- Parent:
- 0:785972ab5892
- Child:
- 2:1117ce9d1867
File content as of revision 1:822c609fb2ce:
#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); //start de functie Homing
Thread::wait(100);
}