Revision d607fcef devices/DiWheelDrive/main.cpp
devices/DiWheelDrive/main.cpp | ||
---|---|---|
1170 | 1170 |
|
1171 | 1171 |
|
1172 | 1172 |
void setGlobalStrategy(BaseSequentialStream *chp, int argc, char *argv[]){ |
1173 |
uint8_t strategy = 0; |
|
1173 | 1174 |
if(argc == 1){ |
1174 |
|
|
1175 |
global.lfStrategy = atoi(argv[0]); |
|
1175 |
strategy = atoi(argv[0]); |
|
1176 | 1176 |
} |
1177 |
// send over can |
|
1178 |
global.strategyTest = strategy; |
|
1179 |
global.triggerCan = true; |
|
1177 | 1180 |
} |
1178 | 1181 |
|
1182 |
|
|
1183 |
|
|
1179 | 1184 |
void getPosition(BaseSequentialStream *chp, int argc, char *argv[]){ |
1180 | 1185 |
types::position pos = global.odometry.getPosition(); |
1181 | 1186 |
chprintf(chp, "Start: Position X: %d, Y: %d, Rotation X: %d, Y: %d, Z: %d\n", global.startPos.x, global.startPos.y, global.startPos.f_x, global.startPos.f_y, global.startPos.f_z); |
Also available in: Unified diff