Revision 05d54823
| devices/DiWheelDrive/Makefile | ||
|---|---|---|
| 5 | 5 |
|
| 6 | 6 |
# Compiler options here. |
| 7 | 7 |
ifeq ($(USE_OPT),) |
| 8 |
USE_OPT = -O2 -fomit-frame-pointer -falign-functions=16 -DCHPRINTF_USE_FLOAT=1 -fstack-usage -DSERIAL_BUFFERS_SIZE=64
|
|
| 8 |
USE_OPT = -O1 -fomit-frame-pointer -falign-functions=16 -DCHPRINTF_USE_FLOAT=1 -fstack-usage -DSERIAL_BUFFERS_SIZE=64
|
|
| 9 | 9 |
endif |
| 10 | 10 |
|
| 11 | 11 |
# C specific options here (added to USE_OPT). |
| ... | ... | |
| 123 | 123 |
$(AMIRO)/components/serial_reset/serial_can_mux.cpp \ |
| 124 | 124 |
DiWheelDrive.cpp \ |
| 125 | 125 |
userthread.cpp \ |
| 126 |
linefollow2.cpp \
|
|
| 126 |
linefollow.cpp \ |
|
| 127 | 127 |
main.cpp \ |
| 128 | 128 |
exti.cpp |
| 129 | 129 |
|
| devices/DiWheelDrive/userthread.cpp | ||
|---|---|---|
| 1 | 1 |
#include "userthread.hpp" |
| 2 | 2 |
#include "global.hpp" |
| 3 |
#include "linefollow2.hpp"
|
|
| 3 |
#include "linefollow.hpp" |
|
| 4 | 4 |
|
| 5 | 5 |
using namespace amiro; |
| 6 | 6 |
|
| devices/DiWheelDrive/userthread.hpp | ||
|---|---|---|
| 4 | 4 |
#include <ch.hpp> |
| 5 | 5 |
#include <amiroosconf.h> |
| 6 | 6 |
#include <amiro/Color.h> |
| 7 |
// #include "global.hpp" |
|
| 7 |
|
|
| 8 | 8 |
|
| 9 | 9 |
// Speed when driving towards the docking station |
| 10 | 10 |
#define CHARGING_SPEED 5 |
Also available in: Unified diff