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: TSI USBDevice mbed-dev
Fork of SmartWheels by
main.cpp
- Committer:
- hazheng
- Date:
- 2017-04-19
- Branch:
- Drift
- Revision:
- 87:15fcf7891bf9
- Parent:
- 84:2c22d01e8ae9
File content as of revision 87:15fcf7891bf9:
#include "mbed.h"
//#define SW_DEBUG
#include "SWCommon.h"
#include "GlobalVariable.h"
#include "PinAssignment.h"
#include "Motor.h"
#include "Servo.h"
#include "ArduCAM.h"
#include "ArduUTFT.h"
#include "ArduTouch.h"
#include "StateManager.h"
SPI g_spi_port(PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK);
int main(void) {
g_spi_port.frequency(5000000);
motor_init();
servo_init();
wait(1.0f);
ardu_utft_init();
ardu_cam_init();
ardu_touch_init();
servo_set_angle(0.0f);
state_manager_switch_state(STANDBY_STATE);
while (1)
{
state_manager_update(0.0f);
}
}
