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.
Dependencies: mbed-os nRF24L01P
Diff: main.cpp
- Revision:
- 4:4fae82a1be60
- Parent:
- 3:793d3386768b
- Child:
- 5:42dad60edb69
--- a/main.cpp Fri Apr 23 12:36:02 2021 +0000 +++ b/main.cpp Fri Apr 23 16:10:12 2021 +0000 @@ -15,6 +15,7 @@ #include "nRF24L01P.h" #include "MX12.h" #include "moteur.h" +#include "string.h" char text[50]; @@ -44,13 +45,13 @@ int rxDataCnt = 0; int id_robot, v_tangent, v_normale, omega_robot, spiner_bool, v_tir ; float v_tr, v_nr, omega_rr; - - // pc.baud(115200); // Débit de la liaison série PC - + char texte[] = "Robot PSL connecte \n\r"; + + pc_serie.write(texte, strlen(texte)); my_nrf24l01p.powerUp(); - my_nrf24l01p.setRfFrequency(2416); // Définition de la fréquence du canal d'E/R + my_nrf24l01p.setRfFrequency(2414); // Définition de la fréquence du canal d'E/R my_nrf24l01p.setAirDataRate(NRF24L01P_DATARATE_1_MBPS); // Définition du débit de la communication RF my_nrf24l01p.setTransferSize( TRANSFER_SIZE );