Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Introduction

Car is an object defined in car_model.py that consumes a self, m, Crr, CdA, max_force, speed_min_ms, speed_max_ms //fix later

To know:

  • The object initialization

  • Dataframe values

With a Car object, we can generate the following:

  • The force required to _________ , using the force_req() method

  • The maximum velocity of __________, using the max_velocity() method

  • The energy used to _______ , using the energy_used() method

The object initialization

Initializing the object requires 7 parameters,

self:

m:

Crr:

CdA:

max_force:

speed_min_ms:

speed_max_ms:

Dataf

The force_req() method

Creates a Car object.

Consumes a Car object which is itself, {self

The max_velocity() method

Consumes a string, filename, and saves a csv of the interpolated route as <filename>.csv in current directory

The energy_used() method

Consumes a string, filename, and saves a csv of the interpolated route as <filename>.csv in current directory

Sample code

 
  • No labels