# furkangltkn/navigation-system-26 architecture

> Architecture diagram of the GitHub repository furkangltkn/navigation-system-26, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/furkangltkn/navigation-system-26
- Repository: https://github.com/furkangltkn/navigation-system-26

## Overview

PARTECH is STM32F407 firmware for navigation, motor/brake control, and USB telemetry. The documented runtime starts in main, initializes the board and RTOS, then runs application tasks; sampled task code includes autonomous-motion state and Omron sensor validation, while the README identifies telemetry as a product capability. Source excerpts are incomplete, so uncertain links to unsampled algorithms and USB data flow are omitted or marked unverified.

Main entry points: [`Core/Src/freertos.c`](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c) (RTOS tasks), [`USB_DEVICE/App/usbd_cdc_if.c`](https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/App/usbd_cdc_if.c) (CDC interface), [`Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c`](https://github.com/furkangltkn/navigation-system-26/blob/main/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c) (USB device stack), [`Core/Src/main.c`](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/main.c) (Board startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and scheduling"]
  node_main["Board startup<br/>[main.c]"]
  node_tasks["RTOS tasks<br/>[freertos.c]"]
end

subgraph group_navigation["Navigation and sensing"]
  node_omron["Omron validation<br/>[freertos.c]"]
  node_imu["IMU fusion<br/>[madgwick.c]"]
  node_onewire["One-wire sensor<br/>[onewire.c]"]
end

subgraph group_control["Motion control"]
  node_actuators["Motor and brakes<br/>[freertos.c]"]
end

subgraph group_telemetry["USB telemetry"]
  node_usbapp["USB device setup<br/>[usb_device.c]"]
  node_cdc["CDC interface<br/>[usbd_cdc_if.c]"]
  node_usbcore["USB device stack<br/>[usbd_core.c]"]
  node_usbtarget["USB hardware support<br/>[usbd_conf.c]"]
end

node_operator(("Operator"))
node_sensors{{"Vehicle sensors"}}
node_host(("USB host"))

node_operator -.->|"requests motion"| node_tasks
node_main -->|"starts tasks"| node_tasks
node_sensors -.->|"sensor input"| node_omron
node_omron -->|"validates position"| node_tasks
node_imu -.->|"provides fusion"| node_tasks
node_onewire -.->|"provides readings"| node_tasks
node_tasks -->|"sets motor and brakes"| node_actuators
node_tasks -.->|"sends telemetry"| node_cdc
node_main -.->|"initializes USB"| node_usbapp
node_usbapp -.->|"configures device"| node_usbcore
node_usbcore -.->|"uses hardware support"| node_usbtarget
node_cdc -.->|"uses CDC stack"| node_usbcore
node_cdc -.->|"exchanges telemetry"| node_host

click node_main "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/main.c"
click node_tasks "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c"
click node_omron "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c"
click node_imu "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/madgwick.c"
click node_onewire "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/onewire.c"
click node_actuators "https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c"
click node_usbapp "https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/App/usb_device.c"
click node_cdc "https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/App/usbd_cdc_if.c"
click node_usbcore "https://github.com/furkangltkn/navigation-system-26/blob/main/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c"
click node_usbtarget "https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/Target/usbd_conf.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_tasks toneBlue
class node_omron,node_imu,node_onewire toneAmber
class node_actuators toneMint
class node_usbapp,node_cdc,node_usbcore,node_usbtarget toneRose
class node_operator,node_sensors,node_host toneIndigo
```

## Components

### Startup and scheduling

- [Board startup](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/main.c): `Core/Src/main.c`
- [RTOS tasks](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c): `Core/Src/freertos.c`

### Navigation and sensing

- [Omron validation](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c): `Core/Src/freertos.c`
- [IMU fusion](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/madgwick.c): `Core/Src/madgwick.c`
- [One-wire sensor](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/onewire.c): `Core/Src/onewire.c`

### Motion control

- [Motor and brakes](https://github.com/furkangltkn/navigation-system-26/blob/main/Core/Src/freertos.c): `Core/Src/freertos.c`

### USB telemetry

- [USB device setup](https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/App/usb_device.c): `USB_DEVICE/App/usb_device.c`
- [CDC interface](https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/App/usbd_cdc_if.c): `USB_DEVICE/App/usbd_cdc_if.c`
- [USB device stack](https://github.com/furkangltkn/navigation-system-26/blob/main/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c): `Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c`
- [USB hardware support](https://github.com/furkangltkn/navigation-system-26/blob/main/USB_DEVICE/Target/usbd_conf.c): `USB_DEVICE/Target/usbd_conf.c`

### Other components

- **Operator**
- **Vehicle sensors**
- **USB host**

## Connections

- Operator → RTOS tasks: requests motion
- Board startup → RTOS tasks: starts tasks
- Vehicle sensors → Omron validation: sensor input
- Omron validation → RTOS tasks: validates position (evidence: `Core/Src/freertos.c`)
- IMU fusion → RTOS tasks: provides fusion
- One-wire sensor → RTOS tasks: provides readings
- RTOS tasks → Motor and brakes: sets motor and brakes (evidence: `Core/Src/freertos.c`)
- RTOS tasks → CDC interface: sends telemetry
- Board startup → USB device setup: initializes USB
- USB device setup → USB device stack: configures device
- USB device stack → USB hardware support: uses hardware support
- CDC interface → USB device stack: uses CDC stack
- CDC interface → USB host: exchanges telemetry
