Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a matlab function: F_rolling This function should validate that (a) there are five inputs, (b) that the first two inputs are scalars or vectors

Create a matlab function: F_rolling

image text in transcribed

This function should validate that (a) there are five inputs, (b) that the first two inputs are scalars or vectors of the same size, (c) that all elements of the second argument are between -75 degrees and +75 degrees, (d) that the third and fourth inputs are structs, and (e) that the fifth input is a positive scalar. If any condition fails, call error(). Be wary of sign conventions. This force always should oppose rover motion (which we assume is in the positive direction). Be wary of units. This function must call get_mass.m and get_gear_ratio.m

F rolling General Description This function computes the component of force due to rolling resistance, in Newtons, acting in the direction of rover translation. This force is a function of the angle the terrain makes with the horizon (in degrees), the total mass of the rover (in kg), and the rolling resistance coefficient (which is a unitless constant that depends on properties of both the wheels and the ground) This function should be "vectorized" such that if given a vector of terrain angles, it returns a vector of the same size consisting of the corresponding forces This function computes the rolling resistance summed over all six wheels. Assume that 1/6" the rover normal force acts on each wheel Calling Syntax FrrF rolling (omega, terrain angle, rover, planet, Crr) Input Arguments omega terrain angle rovel planet Crr N element arrayArray of motor shaft speeds [rad/s] N element array struct struct scalar Array of terrain angles [degl Data structure containing rover parameters Data structure containing planet gravity parameter Value of rolling resistance coefficient [-] Return Arguments Frr array Array of forces N Additional Specifications and Notes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago

Question

why do investors have an interest in gaining preferred stock?

Answered: 1 week ago