Skip to main content

Drone app with face gesture and GUI control

Project description

Adaptive Drone Codebase

Welcome to the Adaptive Drone codebase! This guide provides instructions for setting up Git and following best practices for version control to ensure smooth collaboration.


Setup Instructions

Follow these steps to set up Git and start contributing:

  1. Ensure Git is Installed:

  2. Set Up SSH for GitHub:

    • Add GitHub’s SSH address to your system PATH.
    • Generate an SSH key:
      ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
      
    • Add the generated SSH key to GitHub:
      • Go to GitHub > Settings > SSH and GPG Keys > New SSH Key.
      • Paste the public key (id_rsa.pub).
  3. Configure Git User Info:

    • Set your username and email:
      git config --global user.name "Your Name"
      git config --global user.email "your_email@example.com"
      
  4. Clone the Repository:

    • Clone the repo using the SSH address:
      git clone git@github.com:Abumere17/AdaptiveDrone.git
      

Regular Workflow

To maintain an organized and efficient workflow, follow these best practices:

1. Branch Management

  • Purpose of Branches:
    • Branches are used for specific tasks (e.g., new features or bug fixes).
  • Creating a Branch:
    • To create a new branch and switch to it:
      git checkout -b feature-branch-name
      
  • Switching Branches:
    • Use git checkout to switch to an existing branch:
      git checkout branch-name
      

2. Syncing with Remote

  • Pull Changes:
    • Always pull the latest changes before starting a new coding session:
      git pull origin main
      

3. Making Changes

  • Use the Source Control Tab in VS Code to:
    1. Stage Changes: Select the files you want to include in the commit.
    2. Commit Changes: Add a clear and descriptive commit message.
    3. Push Changes: Push your branch to the remote repository.

4. Merging Changes

  • Once your feature is complete, merge it into the main branch:
    1. Switch to the main branch:
      git checkout main
      
    2. Pull the latest changes:
      git pull origin main
      
    3. Merge your feature branch:
      git merge feature-branch-name
      

Key Git Commands

Here’s a quick reference for common Git commands:

Command Description
git clone <repo-url> Clone a repository.
git checkout -b <branch> Create and switch to a new branch.
git checkout <branch> Switch to an existing branch.
git pull origin <branch> Pull changes from the remote branch.
git add <file> Stage changes.
git commit -m "message" Commit staged changes with a message.
git push origin <branch> Push your branch to the remote repository.
git merge <branch> Merge a branch into the current branch.

Best Practices

  1. Commit Messages:

    • Use clear and descriptive messages for your commits.
    • Example: Added facial detection module to the drone controller.
  2. Keep main Stable:

    • Avoid pushing incomplete or unstable code directly to main.
  3. Communicate:

    • Coordinate with teammates to avoid conflicts, especially during merges.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adaptivedrone-0.1.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adaptivedrone-0.1.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file adaptivedrone-0.1.0.tar.gz.

File metadata

  • Download URL: adaptivedrone-0.1.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for adaptivedrone-0.1.0.tar.gz
Algorithm Hash digest
SHA256 757e518971fba72a3b13a0e6ea71cf3fded15e2eea3d8e59d51b0f3a634bc564
MD5 7001a405c52a6b67a6339345522c8720
BLAKE2b-256 006658567c949f66fd1ab54ed43edeea72ac1872779b3625fed2010472b22853

See more details on using hashes here.

File details

Details for the file adaptivedrone-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: adaptivedrone-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for adaptivedrone-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 042cfb5aef109fc5321bc80912568b7d24d6ce5db5356a65aab9c91146f0b144
MD5 9fe6c567ec0b2e47babcc8ddf06f93d2
BLAKE2b-256 7f67e82668937f83d9ca5600ed251d3678f9839d9802be2db06fa39536605b8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page