![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Program to test nrF24 module / RF transmission
voiture_auto.h
- Committer:
- villemejane
- Date:
- 2021-12-14
- Revision:
- 1:b96e529849d1
File content as of revision 1:b96e529849d1:
/****************************************************************************/ /* Autonomous Vehicle / based on RC vehicle Lancia Delta */ /****************************************************************************/ /* LEnsE / Julien VILLEMEJANE / Institut d'Optique Graduate School */ /****************************************************************************/ /* Library - voiture_auto.h file */ /****************************************************************************/ /* Tested on Nucleo-L476RG / 4th nov 2021 */ /****************************************************************************/ #ifndef VOITURE_AUTO_H_INCLUDED #define VOITURE_AUTO_H_INCLUDED #include "mbed.h" /* Entrées - Sorties */ // Debuggage extern DigitalOut debug_out; extern Serial debug_pc; extern InterruptIn bp_int; // Chassis extern PwmOut direction; // Servomoteur de direction extern PwmOut moteur; // Motorisation / ESC extern AnalogIn pot_dir; // Capteurs extern AnalogIn capt1; extern AnalogIn capt2; extern AnalogIn capt3; extern AnalogIn capt4; extern AnalogIn capt5; extern AnalogIn capt6; /* Variables globales */ extern int angle_roues, vitesse; extern char data; extern float distance_c[6]; /* Initialisation de la voiture */ void initVoiture(void); /* Test Direction */ void testDirection(void); /* Test Vitesse */ void testVitesse(void); /* Réglage Direction */ void setDirection(void); // A faire sur nouvelle carte avec potentiomètre /* Fonction de récupération des données */ void collectData(void); /* Affichage des données des capteurs */ void printData(void); #endif