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_controller.h
- Committer:
- rzalog
- Date:
- 2019-05-05
- Revision:
- 0:7a97ebb833eb
File content as of revision 0:7a97ebb833eb:
#pragma once
class PIDController;
const float deg_to_counts = 4.65f;
const float cells_to_counts = 216.0f;
class MainController {
public:
MainController();
~MainController();
void update();
void driveStraight();
void turn(int deg);
void moveCells(float n);
void start();
void stop();
PIDController* m_pid;
private:
bool shouldUpdate;
};