Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
kubasaw committed Oct 7, 2019
1 parent b5687c4 commit 97b449a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions car/util.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
"""Car simulation utilities module
===============================
"""

def mpsToKmph(speed):
"""Meter per second to kilometer per hour unit converter
Parameters
----------
speed : multiplicable (float, numpy.array etc.)
Speed in m/s
Returns
-------
as *speed*
Speed converted to km/h
"""
return speed*3.6
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Welcome to carSim's documentation!
.. automodule:: car.motion
:members:

.. automodule:: car.util
:members:

.. toctree::
:maxdepth: 2
:caption: Contents:
Expand Down

0 comments on commit 97b449a

Please sign in to comment.