Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LapsimAndYMD/Functions/QueensRacingLAP.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [sim] = QueensRacingLAP(veh, tr)
function [sim] = QueensRacingLAP(veh, tr)
%% Queens Racing LapSim Code
%
% Initially written by Maurice Nayman
Expand Down
2 changes: 1 addition & 1 deletion LapsimAndYMD/Functions/QueensRacingVEHICLE.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
for i=1:veh.nog-1
veh.rownames(i) = {[num2str(i,'%d'),'-',num2str(i+1,'%d')]} ;
end
veh.shifting = table(veh.shiftPoints,veh.arrivePoints,veh.revDrops,'RowNames',veh.rownames) ;
veh.shifting = table(veh.shiftPoints,veh.arrivePoints,veh.revDrops) ;
% HUD
disp('Shift points calculated successfully.')

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 33 additions & 0 deletions LapsimAndYMD/engineComparison.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
%ADD PATH
%Add the template and function folders to the path

addpath('Q:\Formula\VehicleDynamics_Modelling\LapsimAndYMD\Templates')
addpath('Q:\Formula\VehicleDynamics_Modelling\LapsimAndYMD\Functions')

%FILES
%Input vehicle and track filenames
%Each file has motor weight and torque curves changed.
vehicleFile = 'FSAE_QueensRacingVEHICLE_AMKDT7-75.xlsx';
% vehicleFile = 'FSAE_QueensRacingVEHICLE_EMRAX208.xlsx';
% vehicleFile = 'FSAE_QueensRacingVEHICLE_EMRAX228.xlsx';
% vehicleFile = 'FSAE_QueensRacingVEHICLE_EMRAX268.xlsx';
% vehicleFile = 'FSAE_QueensRacingVEHICLE_YASAP400.xlsx';

trackFile = 'FSAE_Michigan2019_AutoX.xlsx';

%VEHICLE
%Run the QueensRacingVehicle file to generate the vehicle data
vehicle = QueensRacingVEHICLE(vehicleFile);

%TRACK
%Run the QueensRacingTRACK to generate the track data
track = QueensRacingTRACK(trackFile, 'shape data');

%LAP
%Run QueensRacingLAP to run a given vehicle through the track
sim = QueensRacingLAP(vehicle, track);

%MISC
%Useful information we want to extract
%wheel torque, engine torque, engine power, engine speed, gear