0
0
Drone Programmingprogramming~10 mins

Indian drone regulations (DGCA rules) in Drone Programming - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Indian drone regulations (DGCA rules)
Start: Drone operation request
Check DGCA registration
Check Drone Type
Check Geo-fencing
Check Flight Permissions
Flight Execution
Post-flight Reporting
This flow shows how a drone operation must follow DGCA rules: registration, drone type check, geo-fencing, permissions, flight, and reporting.
Execution Sample
Drone Programming
if drone.registered and drone.type in allowed_types:
    if location in geo_fenced_area:
        if permission_granted:
            drone.fly()
        else:
            print('Permission denied')
    else:
        print('Outside allowed area')
This code checks registration, drone type, location, and permission before flying the drone.
Execution Table
StepCondition CheckedCondition ResultAction TakenOutput
1drone.registeredTrueProceed to drone type check
2drone.type in allowed_typesTrueProceed to location check
3location in geo_fenced_areaTrueProceed to permission check
4permission_grantedFalseStop flightPermission denied
5EndN/ANo flight executed
💡 Permission not granted, so drone flight is stopped.
Variable Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4Final
drone.registeredTrueTrueTrueTrueTrueTrue
drone.typeAllowed TypeAllowed TypeAllowed TypeAllowed TypeAllowed TypeAllowed Type
locationInside Geo-fenceInside Geo-fenceInside Geo-fenceInside Geo-fenceInside Geo-fenceInside Geo-fence
permission_grantedFalseFalseFalseFalseFalseFalse
Key Moments - 2 Insights
Why does the drone not fly even though it is registered and of allowed type?
Because at step 4 in the execution_table, permission_granted is False, so the code stops the flight and prints 'Permission denied'.
What happens if the drone is outside the geo-fenced area?
At step 3, if location in geo_fenced_area is False, the code prints 'Outside allowed area' and stops flight, as shown in the flow diagram.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the action taken at step 3?
AProceed to permission check
BStop flight
CReject operation
DPrint 'Permission denied'
💡 Hint
Refer to row 3 under 'Action Taken' in the execution_table.
At which step does the drone flight get stopped due to lack of permission?
AStep 3
BStep 4
CStep 2
DStep 5
💡 Hint
Check the 'Condition Result' and 'Action Taken' columns at step 4 in the execution_table.
If permission_granted was True, what would be the next action after step 4?
AStop flight
BReject operation
CProceed to flight execution
DPrint 'Permission denied'
💡 Hint
Think about what happens when all conditions are True in the code sample and flow diagram.
Concept Snapshot
Indian drone rules require:
- Drone registration with DGCA
- Allowed drone types only
- Flying inside geo-fenced areas
- Permission granted before flight
- Post-flight reporting
Code checks these step-by-step before flying.
Full Transcript
This visual trace shows how Indian drone regulations by DGCA control drone flights. First, the drone must be registered and of an allowed type. Then, the flight location must be inside a geo-fenced area. Next, permission must be granted. If any check fails, the flight is stopped with a message. The code sample checks these conditions in order and only allows flying if all pass. The execution table shows each step's condition and action, and the variable tracker shows how variables change. Key moments clarify why flights stop without permission or outside allowed areas. The quiz tests understanding of these steps.