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: mbed QEI MODSERIAL
main.cpp
- Committer:
- JasperFix
- Date:
- 2019-10-22
- Revision:
- 1:675b67b2ae02
- Parent:
- 0:05da2ae2ad90
- Child:
- 4:40dc3d3da129
File content as of revision 1:675b67b2ae02:
#include "mbed.h"
#include "MODSERIAL.h"
#include "QEI.h"
Serial pc(USBTX, USBRX);
enum states {WAITING, MOTOR_ANGLE_CLBRT, EMG_CLBRT, HOMING, WAITING4SIGNAL, OPERATION, SHOOTING, DEMO, FAILURE_MODE};
states currentState = WAITING; // Start in waiting state
void state_machine(void){
switch(current_state){
case WAITING:
break;
case MOTOR_ANGLE_CLBRT:
break;
case EMG_CLBRT:
break;
case HOMING:
break;
case WAITING4SIGNAL:
break;
case OPERATION:
break;
case SHOOTING:
break;
case DEMO:
break;
case FAILURE_MODE:
break;
int main()
{
}
}