Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Functions | Variables
Conversions.c File Reference
#include "../../Inc/Utils/Conversions.h"
Include dependency graph for Conversions.c:

Go to the source code of this file.

Functions

float convertMpsToMph (float metersPerSecond)
 

Variables

static const float MPS_TO_MPH = 2.236936
 

Function Documentation

◆ convertMpsToMph()

float convertMpsToMph ( float  metersPerSecond)

Converts from meters per second to miles per hour

Parameters
metersPerSecondThe speed to convert in meters per second.
Returns
The speed in miles per hour.

Definition at line 5 of file Conversions.c.

5 {
6 return metersPerSecond * MPS_TO_MPH;
7}
static const float MPS_TO_MPH
Definition: Conversions.c:3
Here is the caller graph for this function:

Variable Documentation

◆ MPS_TO_MPH

const float MPS_TO_MPH = 2.236936
static

Definition at line 3 of file Conversions.c.