Skip to content

Commit

Permalink
Added drone doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeeptarlekar committed Jul 30, 2020
1 parent 7e9f222 commit 02e4fc8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions doc/drone/drone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# `Faker::Drone`

```ruby
# Aircraft Properties
Faker::Drone.name #=> "DJI Mavic Air 2"
Faker::Drone.weight #=> "570g"
Faker::Drone.max_ascent_speed #=> "4m/s"
Faker::Drone.max_descent_speed #=> "3m/s"
Faker::Drone.flight_time #=> "34Mins"
Faker::Drone.max_altitude #=> "5000m"
Faker::Drone.max_flight_distance #=> "18500m"
Faker::Drone.max_speed #=> "19m/s"
Faker::Drone.max_wind_resistance #=> "10.5m/s"
Faker::Drone.max_angular_velocity #=> "250º/s"
Faker::Drone.max_tilt_angle #=> "35º"
Faker::Drone.operating_temprature #=> "14º-104ºF"

# Battery Properties
Faker::Drone.battery_capacity #=> "3500mAh"
Faker::Drone.battery_voltage #=> "13.2V"
Faker::Drone.battery_type #=> "LiPo 4S"
Faker::Drone.battery_weight #=> "198g"
Faker::Drone.charging_temprature #=> "41º-104ºF"
Faker::Drone.max_charging_power #=> "38W"

# Camera Properties
Faker::Drone.iso #=> "100-3200"
Faker::Drone.max_resolution #=> "48MP
Faker::Drone.photo_format #=> "JPEG"
Faker::Drone.video_format #=> "MP4"
Faker::Drone.shutter_speed #=> "8-1/8000s"
```

### Faker::Drone.model

This will return the model with all above drone properties, to insure that all drone properties are valid for particular model

```ruby
model = Faker::Drone.model
model.name #=> "DJI Mavic Air"
model.battery_capacity #=> "2375mAh"
model.max_resolution #=> "12MP"
```

0 comments on commit 02e4fc8

Please sign in to comment.