![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Program to test nrF24 module / RF transmission
Diff: voiture_auto.h
- Revision:
- 2:68d03c147aff
- Parent:
- 1:b96e529849d1
--- a/voiture_auto.h Tue Dec 14 15:03:53 2021 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/****************************************************************************/ -/* 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 \ No newline at end of file