Skip to content

Cornering model#19

Draft
jonahjlee wants to merge 2 commits into
mainfrom
corneringModel
Draft

Cornering model#19
jonahjlee wants to merge 2 commits into
mainfrom
corneringModel

Conversation

@jonahjlee

Copy link
Copy Markdown
Contributor

Creating a draft PR so that the diff can be viewed easily and so that we can provide comments.

@jonahjlee jonahjlee left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some miscellaneous comments after looking through your code in motor. I know you're still working on things so don't worry if I've said something you already know!

self.COG_height = 0.5 #meters, arbitrary value for now


def get_slip (self, IMU_lateral_acceleration, ):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def get_slip (self, IMU_lateral_acceleration, ):
def get_slip(self, IMU_lateral_acceleration):

class V3CorneringModel(BasicMotor):
def __init__(self, left: bool, front: bool, **kwargs):
super().__init__(**kwargs)
self.tire_stiffness = 50000 #arbitrary value for now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor formatting convention - leave one space after the # for each comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename this file to v3_cornering_model.py?

"""
total_load = self.vehicle_mass

if (self.front_side == True):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just do if (self.front_side): instead of comparing to True here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants