diff options
| author | alex <aletu130@student.liu.se> | 2019-10-20 15:54:33 +0200 |
|---|---|---|
| committer | alex <aletu130@student.liu.se> | 2019-10-20 15:54:33 +0200 |
| commit | 13f22ba6b4a6e530be779ef96d71850e767e9366 (patch) | |
| tree | 04840aaf2a896a65c8cd2005fcc2019c96f0a6fb /Kod/bilbana/yc4/get_new_u.m | |
| parent | 483d5184a309a396be7310afcddb913d9e24efe2 (diff) | |
| parent | 7978f8c42029b59e479ec918b67d968b1385081c (diff) | |
| download | tfyy51-13f22ba6b4a6e530be779ef96d71850e767e9366.tar.gz | |
Merge branch 'freeze'
Diffstat (limited to 'Kod/bilbana/yc4/get_new_u.m')
| -rw-r--r-- | Kod/bilbana/yc4/get_new_u.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/get_new_u.m b/Kod/bilbana/yc4/get_new_u.m index 39662b5..ee624fe 100644 --- a/Kod/bilbana/yc4/get_new_u.m +++ b/Kod/bilbana/yc4/get_new_u.m @@ -2,6 +2,13 @@ function [ new_u ] = get_new_u( new_v, car_constant, track_u_constant ) %GET_NEW_U Summary of this function goes here % Detailed explanation goes here - +%{ +GET_NEW_U: +new_u: Den spänning som ska appliceras beroende på vilken hastighet new_v anger. Ett högre new_v innebär +ett högre new_u. De andra parametrarna som påverkar new_u är car_constant och track_u_constant, desto högre +dessa värden dessa antar desto högre värde antar också new_u. new_u är programmets sista output, dess värde +0 till 127 är det gaspådrag som appliceras på bilen. +%} +new_u = new_v*car_constant*track_u_constant; end |
