2 Downloads Updated 1 month ago
ollama run jettanakorn/JFOX-AI
Updated 1 month ago
1 month ago
4330f6daa829 · 2.0GB ·
Domain-specialized AI copilot for the Baby Redbee coaxial EDF VTOL drone
Built on Llama 3.2 · Runs offline on Raspberry Pi · Privacy-first · Rust-integrated
JFOX-AI is a custom Ollama model (jettanakorn/JFOX-AI) engineered specifically for real-time diagnostics of the Baby Redbee drone during flight testing. It interprets telemetry from the ESP32 flight controller (MPU6050, EDF current, attitude) and provides concise, actionable engineering insights—without cloud dependency.
✈️ “Asymmetric EDF current during hover suggests duct obstruction or thrust vector misalignment. Inspect EDF-A blades and verify calibration.”
Modelfile (Git-friendly)# Ensure base model is available
ollama pull llama3.2
# Create Modelfile (NO comments on line 1!)
echo "FROM llama3.2" > Modelfile
echo "SYSTEM You are JFOX-AI, an embedded flight diagnostic assistant for the Baby Redbee coaxial EDF VTOL drone. Your role is to analyze real-time telemetry and provide concise, actionable engineering insights. Guidelines: - Always assume sensor data comes from: MPU6050 (IMU), current/voltage monitors, EDF RPM sensors, and MAVLink ATTITUDE. - Prioritize safety: flag instability, motor sync loss, battery sag, or control surface issues. - Use SI units. Be precise. - If uncertain, say \"Insufficient data — recommend ground inspection.\" - Never speculate beyond drone systems." >> Modelfile
echo "PARAMETER temperature 0.3" >> Modelfile
echo "PARAMETER repeat_penalty 1.1" >> Modelfile
echo "PARAMETER num_ctx 2048" >> Modelfile
# Build
ollama create jettanakorn/JFOX-AI -f Modelfile
ollama run jettanakorn/JFOX-AI
>>> During climb, EDF-A current = 48A, EDF-B = 32A. Diagnose.
# On Pi 5
ollama pull jettanakorn/JFOX-AI
ollama serve # Start API (port 11434)
# Run Rust agent (see /rust-agent)
cd rust-agent && cargo run
JFOX-AI/
├── Modelfile # Model definition (no comments!)
├── README.md
├── rust-agent/ # Telemetry → AI query service
│ ├── Cargo.toml
│ └── src/main.rs # MAVLink listener + Ollama client
├── deploy/
│ └── pi5-setup.sh # One-click Pi 5 deployment
└── docs/
└── flight_diagnostic_rules.md # Human-readable logic
Baby Redbee FC (ESP32 + Rust)
│
↓ (MAVLink via UART/Wi-Fi)
Raspberry Pi 5 ┌───────────────┐
│ Ollama Server │ ← jettanakorn/JFOX-AI
└───────────────┘
│
↓
Rust Agent (diagnostics.rs)
│
↓
Web Dashboard / Log / FC Command
| Component | Spec |
|---|---|
| Base Model | llama3.2 (8B, Q6_K quantized) |
| Edge Device | Raspberry Pi 5 (8GB RAM recommended) |
| Flight Controller | ESP32 with MAVLink telemetry (MPU6050, EDF current sensors) |
| Ollama | v0.1.34+ |
| Rust | 1.75+ |
💡 Note: Llama 3.2 requires ~6GB RAM at inference. Use
htopto monitor on Pi 5.
ollama login # Use your jettanakorn account
ollama push jettanakorn/JFOX-AI
sudo cp deploy/jfox-ai-agent.service /etc/systemd/system/
sudo systemctl enable --now jfox-ai-agent
🔒 Data Policy: All telemetry stays on-device. No data is sent to Ollama Cloud unless you explicitly
pushthe model.
Jettanakorn / JFOX Aircraft Co., Ltd.
Senior Aerospace Engineer & Flight Control Systems Lead
Part of the Readbee Team — Advancing autonomous VTOL drone technology.
🦊 JFOX-AI: Your silent co-pilot in the sky.
“When the data speaks, we listen.”
License: Internal Use — JFOX Aircraft Co., Ltd.
Version: v1.0 (2026-01-07)