How jmeyerson99/ide-lab works
This repository’s primary runtime is an embedded NXP Cup car controller: the operator selects a speed mode, the controller captures a camera line, derives a track midpoint, and adjusts steering and motor commands. The camera capture and vehicle control are implemented in the same camera and main modules, respectively; PWM, switches, LEDs, and UART provide supporting hardware interfaces. The tree also contains standalone lab programs and an older camera implementation, shown separately as experiments rather than part of the active control path. Relationships are limited to calls visible in the supplied excerpts or references in the SOURCE INDEX.
Main entry points: main.c Car controller · pwm.c PWM control · uart.c UART interface · camera.c Camera capture
Components 14
Vehicle control
- Car controller
code/main.c
Line sensing
- Camera capture
code/camera.c
Hardware interfaces
- Mode switches
code/switch.c - LED indicators
code/led.c - PWM control
code/pwm.c - UART interface
code/uart.c
Lab experiments
- Legacy camera app
code/old_mains/camera_main.c - ADC lab app
code/old_mains/adc_main.c - Interrupt lab app
code/old_mains/interrupts_main.c - PWM car lab
code/old_mains/car_main.c - Motor lab app
code/old_mains/motors_main.c
Other components
- Operator
- Line-scan camera
- Motors and servo
Connections 13
- Operator → Car controller: selects mode
code/main.c - Line-scan camera → Camera capture: provides pixels
code/camera.c - Car controller → Camera capture: gets line
code/main.c - Car controller → Mode switches: reads switches
code/main.c - Car controller → LED indicators: controls LEDs
code/main.c - Car controller → PWM control: sets drive outputs
code/main.c - PWM control → Motors and servo: drives motors
- Car controller → UART interface: reads calibration
code/main.c - Legacy camera app → UART interface: streams data
code/old_mains/camera_main.c - ADC lab app → UART interface: prints readings
code/old_mains/adc_main.c - Interrupt lab app → UART interface: initializes UART
code/old_mains/interrupts_main.c - PWM car lab → PWM control: tests PWM
code/old_mains/car_main.c - Motor lab app → PWM control: tests motors
code/old_mains/motors_main.c