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.
Diff: main.cpp
- Revision:
- 0:785972ab5892
- Child:
- 1:822c609fb2ce
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Apr 04 10:08:08 2019 +0000
@@ -0,0 +1,28 @@
+#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;
+ //}
+
+
+
+}
\ No newline at end of file