mirror of
https://github.com/modelec/MarcelMoteurSTM32.git
synced 2026-01-18 16:47:23 +01:00
création des fonctions de communication avec la rasp
This commit is contained in:
@@ -117,7 +117,16 @@ void ModelecOdometryUpdate() {
|
||||
HAL_UART_Transmit(&huart2, (uint8_t*) msg, strlen(msg), HAL_MAX_DELAY);
|
||||
}
|
||||
|
||||
void publishStatus(){
|
||||
|
||||
}
|
||||
|
||||
void receiveControlParams(){
|
||||
|
||||
}
|
||||
|
||||
void ModelecOdometryLoop() {
|
||||
receiveControlParams();
|
||||
GPIOC->ODR ^= (1 << 10);
|
||||
|
||||
//On met à jour toutes les 10ms
|
||||
@@ -131,6 +140,7 @@ void ModelecOdometryLoop() {
|
||||
|
||||
}
|
||||
|
||||
publishStatus();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user