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.
Fork of Repo_Noeud_Mobile by
Diff: main.cpp
- Revision:
- 58:4cdc85ed04a9
- Parent:
- 57:ce80fbd67161
--- a/main.cpp Sun Apr 12 03:02:21 2015 +0000 +++ b/main.cpp Sun Apr 12 18:59:37 2015 +0000 @@ -47,7 +47,7 @@ flex_t flex_data; Mobile_Vers_Fixe mail_mvf; //RtosTimer *sync; -GameMode_e mode = WAITING; +GameMode_e mode = RPS; AirGuitar_opMode_e opMode; short PanId; char GantID; @@ -117,7 +117,7 @@ threads[RPS] = rps_thread_ptr; threads[AirGuitar] = airguitar_thread_ptr; threads[XBEE_TRANSMIT] = transmit_xbee_data_thread_ptr; - + configure_RPS(); while(true) { } } @@ -152,15 +152,15 @@ xbee.fvm_mailbox.free(mail); switch(mode) { case 0: - m_pc.printf("Led Gunner Start! \n\r"); + m_pc.printf("Led Gunner Start! FVM \n\r"); configure_GUNNER(); break; case 1: - m_pc.printf("RPS Start! \n\r"); + m_pc.printf("RPS Start! FVM\n\r"); configure_RPS(); break; case 2: - m_pc.printf("Air Guitar Start! \n\r"); + m_pc.printf("Air Guitar Start! FVM\n\r"); configure_GUITAR(); break; default: @@ -226,9 +226,9 @@ mail_mvf.gants = 'D'; // Gauche ou Droit m_pc.printf("Envoie de mail"); threads[XBEE_TRANSMIT]->signal_set(0x01); - mail_mvf = mailGauche; - threads[XBEE_TRANSMIT]->signal_set(0x01); - + /* mail_mvf = mailGauche; + threads[XBEE_TRANSMIT]->signal_set(0x01); + */ // send data frame to the fixed mbed for analyze } accel.clear_TRANSIENT_INTERRUPT();