-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e9f222
commit 02e4fc8
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |