From 6e68e4311dc36cacafa874f632f9f11d94a752b4 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 18 Oct 2019 16:59:49 +0200 Subject: Merge branch 'david' --- Kod/bilbana/yc4/get_car_constant.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Kod/bilbana/yc4/get_car_constant.m') diff --git a/Kod/bilbana/yc4/get_car_constant.m b/Kod/bilbana/yc4/get_car_constant.m index b2d61f0..7f3aafb 100644 --- a/Kod/bilbana/yc4/get_car_constant.m +++ b/Kod/bilbana/yc4/get_car_constant.m @@ -1,7 +1,12 @@ function [ car_constant ] = get_car_constant( in_pos, pos ) %GET_CAR_CONSTANT Summary of this function goes here % Detailed explanation goes here - - + switch(in_pos) + case 1 + car_constant = 1; + case 2 + car_constant = 1.2; + end + return end -- cgit v1.2.1