From 597eb3821de45a02fe5820266dbc87069162211a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 6 Aug 2007 10:52:37 +0200 Subject: Added motor models. --- digital/asserv/models/compare_motors.m | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 digital/asserv/models/compare_motors.m (limited to 'digital/asserv/models/compare_motors.m') diff --git a/digital/asserv/models/compare_motors.m b/digital/asserv/models/compare_motors.m new file mode 100644 index 00000000..a8dee3f3 --- /dev/null +++ b/digital/asserv/models/compare_motors.m @@ -0,0 +1,43 @@ +% Compare different motors. +motor; + +%global to_file = 1; + +function u = control (t) + global sys; + if (t < 1) + u = sys.motor.u; + else + u = 0; + end +end + +global sys; +sys.motor = re40g; +sys.gear = gear4x; +sys.load = robot10w80; +sys.load.J /= 2; % Two motors. +sys.control.func = "control"; + +plotterm ("re40g"); +sys_plot (2); + +global sys; +sys.motor = re25g; +sys.gear = gear20x; +sys.load = robot10w80; +sys.load.J /= 2; % Two motors. +sys.control.func = "control"; + +plotterm ("re25g"); +sys_plot (2); + +global sys; +sys.motor = re25cll; +sys.gear = gear10x; +sys.load = robot10w80; +sys.load.J /= 2; % Two motors. +sys.control.func = "control"; + +plotterm ("re25cll"); +sys_plot (2); -- cgit v1.2.3