Technoshop, project bouchons EDF, révision tourelle laser.
Go to file
2025-06-12 09:39:27 +02:00
include chore: configure clangd lsp for arduino 2025-06-10 15:54:55 +02:00
.clang-format chore: add clang-format config file 2025-06-05 15:25:15 +02:00
.gitignore chore: configure clangd lsp for arduino 2025-06-10 15:54:55 +02:00
config.h doc: improve magic numbers description 2025-06-12 09:39:27 +02:00
generate_clangd.py chore: configure clangd lsp for arduino 2025-06-10 15:54:55 +02:00
maths.cpp style: fix missing formatting 2025-06-10 22:44:51 +02:00
maths.h chore: prevent multiple includes for maths.h 2025-06-11 14:05:36 +02:00
README.md doc: update and improve readme 2025-06-10 23:00:45 +02:00
turret.cpp feat: add a destructor for Turret to diasble steppers and lasers 2025-06-11 14:36:01 +02:00
turret.h feat: add a destructor for Turret to diasble steppers and lasers 2025-06-11 14:36:01 +02:00
turret_debug.ino style: fix missing formatting 2025-06-10 22:44:51 +02:00

Laser turret Debug

Code de la tourelle de pointage laser du projet bouchons EDF.

Warning

Code de debuggage uniquement.

Important

Nouvelle méca, les axes H/x et V/y sont découplés.

Usage

Compile through Arduino IDE or equivalent.

Important

Add kissStepper to your project librairies.

Conventions

  • x is the horizontal axis centered at 0 and going from left (min value) to right (max value).
  • y is the vertical axis centered at 0 and going from bottom (min value) to top (max value).
  • z is the distance between the turrent and the target.
xychart-beta
  title "Turret coordinate system"
  x-axis "X axis [m]" -3 --> 3 
  y-axis "Y axis [m]" -3 --> 3
  bar [-4]

Development

Required dependeinces if not using Arduino IDE:

  • Arduino CLI:
    • Install:
      # linux
      curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
      
      # macos
      brew update
      brew install arduino-cli
      
      # windows
      winget install --id=ArduinoSA.CLI  -e
      
    • Configure:
      arduino-cli config init
      arduino-cli core update-index
      arduino-cli core install arduino:avr
      

If you use clangd as lsp run python ./generate_clangd.py to load arduino config and libraries.

Contributing

Before git commit, run git clang-format --staged to format stagged files and then git add to commit formatting.