mirror of
https://github.com/modelec/odo_STM32.git
synced 2026-03-18 21:30:38 +01:00
wall alignment
This commit is contained in:
@@ -51,7 +51,7 @@ void Comm_SetAction(uint8_t time);
|
||||
|
||||
uint8_t Comm_GetAction();
|
||||
|
||||
void Comm_SetAlignement(uint8_t action);
|
||||
void Comm_SetAlignment(uint8_t action);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ uint8_t Comm_GetAction() {
|
||||
return bot.action;
|
||||
}
|
||||
|
||||
void Comm_SetAlignement(uint8_t action) {
|
||||
void Comm_SetAlignment(uint8_t action) {
|
||||
|
||||
float x = bot.pos.x;
|
||||
float y = bot.pos.y;
|
||||
|
||||
@@ -297,7 +297,7 @@ void USB_Comm_Process(void) {
|
||||
snprintf(response, sizeof(response), "OK;ACTION;%d\n", action);
|
||||
USB_Comm_Send(response);
|
||||
}
|
||||
else if (strcmp(token, "ALIGNEMENT") == 0) {
|
||||
else if (strcmp(token, "ALIGNMENT") == 0) {
|
||||
token = strtok(NULL, ";");
|
||||
|
||||
uint8_t action;
|
||||
@@ -315,7 +315,7 @@ void USB_Comm_Process(void) {
|
||||
action = 4;
|
||||
}
|
||||
|
||||
Comm_SetAlignement(action);
|
||||
Comm_SetAlignment(action);
|
||||
|
||||
char response[64];
|
||||
snprintf(response, sizeof(response), "OK;ACTION;%d\n", action);
|
||||
|
||||
Reference in New Issue
Block a user