DAVFoundation / missioncontrol

πŸ›° Controls and orchestrates missions between vehicles and DAV users
MIT License
181 stars 156 forks source link

Generate random ratings for drones (first-timers-only) #3

Closed TalAter closed 7 years ago

TalAter commented 7 years ago

first-timers-only

This issue is tagged :octocat: first-timers-only. It is only for people who have never contributed to open source before, and are looking for an easy way take their first steps.

Consider this your chance to dip your toe into the world of open-source, and get some bragging rights for writing code that makes drones fly, lets cars find charging stations, helps people and goods get from place to place, and more.

Find more first-timers-only issues here.

Thank you for your help :heart:

What is this project?

DAV (Decentralized Autonomous Vehicles) is a new foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.

As an organization that believes in building a large community of open-source contributors, we often create issues like this one to help people take their first few steps into the world of open source.

Mission Control

The DAV project you are looking at is Mission Control. It is the brain in charge of orchestrating missions between DAV users and autonomous vehicles.

How you can help

Background

To help developers building on top of DAV technologies, Mission Control can start in a simulation environment. In a simulation environment, there are always a few simulated drones flying around the user, ready to take on missions. This makes it easy for developers to start building and testing without investing in hardware.

The Issue

When creating a new simulated drone, it needs to have a rating based on its past performance (e.g. 4.9). Currently, the method that creates this rating always returns the same value.

The function randomRating() inside /server/simulation/random.js needs to be updated to return a random rating for the drone. A rating is a float between 1.0 and 5.0.

Implement the logic of randomRating() like so:

console.log(
  randomRating()
); // logs something like 4.9 or 3.6 or 4.0

To test your function, follow the instructions in Contributing to Mission Control, and after you write your code visit http://localhost:8888/status.

Contributing to Mission Control

cg-cnu commented 7 years ago

can I pick this up ?

TalAter commented 7 years ago

@cg-cnu You're no first-timer πŸ˜ƒ

I would love to give people who haven't contributed in the past a chance to learn from these issues (as you can imagine, it takes a lot of work and time to document and write these issues).

I would be very appreciative of any other pull requests from you if you see anything else that needs work. I will also be creating some issues for non-first-timers, which I'll be glad to have your help with.

Thank you for the enthusiasm ❀️ I know how fun it is once you get started. I'm the same way myself.

cg-cnu commented 7 years ago

@TalAter Ha ha... πŸ˜„ I know, I was just thinking the same but couldn't resist myself πŸ˜ƒ I will be around and try to help the first timers to setup. Thanks πŸ‘

TalAter commented 7 years ago

That's the (open-source) spirit! ❀️

ddimitrakop commented 7 years ago

Hello! Can i try to solve it (pick it up)? So you just need the function to return a random number between 1.0 and 5.0?

cg-cnu commented 7 years ago

Hey @JamesDimi. Yes, that's it. Feel free to work on it.

TalAter commented 7 years ago

Looks great @JamesDimi! Thank you for the help πŸ‘

And congrats on your first pull request. I hope it is the first of many.

jamesdimi__james_dimitrakopoulos_