Updated Files: 14 total
CSV Structure:
OLD: hw_id,pos_id,x,y,ip,mavlink_port,debug_port,gcs_ip (8 columns)
NEW: hw_id,pos_id,x,y,ip,mavlink_port,debug_port,gcs_ip,serial_port,baudrate (10 columns)
No action needed! Files already updated:
To verify:
python3 test_config_simple.py
The drones will automatically pull the updated config.csv via git sync.
If you have Raspberry Pi 5 drones, update their entries:
# Change from:
5,5,-2.5,-10.0,100.96.177.73,14555,13545,100.96.32.75,/dev/ttyS0,57600
# To:
5,5,-2.5,-10.0,100.96.177.73,14555,13545,100.96.32.75,/dev/ttyAMA0,57600
^^^^^^^^^^^^
Then restart drone service:
ssh drone5
sudo systemctl restart coordinator
| Drone Type | Serial Port | Baudrate |
|---|---|---|
| Raspberry Pi 4 | /dev/ttyS0 |
57600 |
| Raspberry Pi 5 | /dev/ttyAMA0 |
57600 |
| Jetson | /dev/ttyTHS1 |
921600 |
| SITL | N/A | N/A |
ssh drone_ip
cat /proc/cpuinfo | grep "Model"
sed -i 's|/dev/ttyS0|/dev/ttyAMA0|g' config.csv
head -1 config.csv
# Should show: hw_id,pos_id,x,y,ip,mavlink_port,debug_port,gcs_ip,serial_port,baudrate
python3 test_config_simple.py
Expected: All tests pass β
cd app/dashboard/drone-dashboard
npm start
Navigate to Mission Config β verify new columns visible
If something goes wrong:
# Restore backups
cp config.csv.backup config.csv
cp config_sitl.csv.backup config_sitl.csv
# Revert code changes
git checkout HEAD~1 gcs-server/config.py
git checkout HEAD~1 functions/read_config.py
git checkout HEAD~1 src/drone_config.py
# ... (or just git reset --hard HEAD~1)
# Restart services
sudo systemctl restart gcs-server
sudo systemctl restart coordinator
docs/CONFIG_CSV_MIGRATION_GUIDE.mdIMPLEMENTATION_SUMMARY.mdtest_config_simple.py/dev/ttyS0)/dev/ttyAMA0Issue: Drone not connecting after update
# Check serial port
ssh drone_ip
ls -la /dev/tty* | grep -E "ttyS0|ttyAMA0|ttyTHS1"
# Verify config loaded
cat config.csv | grep "^DRONE_HW_ID,"
Issue: CSV upload fails
Issue: Git auto-commit fails
git status for detailsBefore deploying to production:
After deploying:
β All drones connect to Pixhawk β MAVLink telemetry streaming β Missions execute normally β Git sync works β Mixed hardware fleet operational (if applicable)
Quick Help: If stuck, check test_config_simple.py output for specific error details.