Fusion des codes pour PAMI et carte de propulsion
This commit is contained in:
parent
5f4cacf2d1
commit
ff2996f0e6
@ -1,3 +1,4 @@
|
|||||||
|
#include "config_robot.h"
|
||||||
#include "QEI.h"
|
#include "QEI.h"
|
||||||
#include "Moteurs.h"
|
#include "Moteurs.h"
|
||||||
#include "Asser_Moteurs.h"
|
#include "Asser_Moteurs.h"
|
||||||
|
|||||||
16
config_robot.h
Normal file
16
config_robot.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Changer le define en fonction qu'on soit sur les PAMIs ou sur le robot principal
|
||||||
|
|
||||||
|
#define ROBOT_PROPULSION_2026
|
||||||
|
//#define ROBOT_TYPE_PAMI
|
||||||
|
|
||||||
|
#ifndef ROBOT_PROPULSION_2026
|
||||||
|
#ifndef ROBOT_TYPE_PAMI
|
||||||
|
#error "Vous devez choisir un type de robot"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ROBOT_PROPULSION_2026
|
||||||
|
#ifdef ROBOT_TYPE_PAMI
|
||||||
|
#error "Vous devez choisir un seul type de robot"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
1
main.c
1
main.c
@ -3,6 +3,7 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
#include "config_robot.h"
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
#include "pico/multicore.h"
|
#include "pico/multicore.h"
|
||||||
#include "hardware/adc.h"
|
#include "hardware/adc.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user