2022-09-23 17:43:45 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(test_project C CXX ASM)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
pico_sdk_init()
|
2022-11-03 21:46:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-09-23 17:43:45 +00:00
|
|
|
add_executable(test
|
2022-12-19 18:04:24 +00:00
|
|
|
Holonome2023.c
|
2022-12-01 21:47:51 +00:00
|
|
|
APDS_9960.c
|
2022-11-18 14:23:40 +00:00
|
|
|
Asser_Moteurs.c
|
2022-12-08 19:25:36 +00:00
|
|
|
Asser_Position.c
|
2023-03-31 18:39:12 +00:00
|
|
|
Balise_VL53L1X.c
|
2022-12-05 20:59:20 +00:00
|
|
|
Commande_vitesse.c
|
2023-05-13 18:56:53 +00:00
|
|
|
Evitement.c
|
2022-12-01 21:47:51 +00:00
|
|
|
QEI.c
|
2023-04-13 17:43:35 +00:00
|
|
|
Geometrie.c
|
2022-09-23 20:09:40 +00:00
|
|
|
gyro.c
|
2022-10-16 08:26:44 +00:00
|
|
|
gyro_L3GD20H.c
|
2022-10-27 17:49:16 +00:00
|
|
|
gyro_ADXRS453.c
|
2022-12-22 21:35:49 +00:00
|
|
|
i2c_maitre.c
|
2023-03-16 22:27:08 +00:00
|
|
|
i2c_annexe.c
|
2022-12-01 21:47:51 +00:00
|
|
|
Localisation.c
|
2022-11-17 17:43:11 +00:00
|
|
|
Moteurs.c
|
2023-04-28 21:51:43 +00:00
|
|
|
Monitoring.c
|
2022-12-19 18:04:24 +00:00
|
|
|
Robot_config.c
|
2023-05-11 19:04:02 +00:00
|
|
|
Score.c
|
2023-03-18 16:59:15 +00:00
|
|
|
Servomoteur.c
|
2023-03-26 19:28:13 +00:00
|
|
|
Strategie.c
|
2023-05-13 20:09:24 +00:00
|
|
|
Strategie_deplacement.c
|
2023-03-18 16:59:15 +00:00
|
|
|
Strategie_prise_cerises.c
|
2023-05-20 00:19:41 +00:00
|
|
|
Strategie_pousse_gateau.c
|
2022-12-01 21:47:51 +00:00
|
|
|
Temps.c
|
2022-12-19 18:04:24 +00:00
|
|
|
Test.c
|
2023-03-18 16:59:15 +00:00
|
|
|
Test_strategie.c
|
2022-12-10 14:29:04 +00:00
|
|
|
Trajet.c
|
|
|
|
Trajectoire.c
|
|
|
|
Trajectoire_bezier.c
|
|
|
|
Trajectoire_circulaire.c
|
|
|
|
Trajectoire_droite.c
|
2023-03-03 15:37:36 +00:00
|
|
|
Trajectoire_rotation.c
|
2022-12-01 21:47:51 +00:00
|
|
|
spi_nb.c)
|
2022-10-27 17:49:16 +00:00
|
|
|
|
2022-11-03 21:46:41 +00:00
|
|
|
pico_generate_pio_header(test ${CMAKE_CURRENT_LIST_DIR}/quadrature_encoder.pio)
|
|
|
|
|
2022-10-27 17:49:16 +00:00
|
|
|
add_definitions(-DGYRO_ADXRS453)
|
2022-09-23 17:43:45 +00:00
|
|
|
pico_enable_stdio_usb(test 1)
|
|
|
|
pico_enable_stdio_uart(test 1)
|
|
|
|
pico_add_extra_outputs(test)
|
2022-12-22 21:35:49 +00:00
|
|
|
target_link_libraries(test pico_stdlib hardware_i2c hardware_timer hardware_spi hardware_pwm hardware_structs hardware_pio pico_multicore)
|
2022-09-23 17:43:45 +00:00
|
|
|
|
|
|
|
add_custom_target(Flash
|
|
|
|
DEPENDS test
|
2022-12-22 21:35:49 +00:00
|
|
|
COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/test.uf2
|
2022-09-23 17:43:45 +00:00
|
|
|
)
|