Drivercontroller.emadl 305 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
package dp.subcomponents;

component Drivercontroller {
    ports
	    in Q(0:1)^{13,1,1} affordanceIn,
	    out Q(0:1)^{3,1,1} commandsOut;

	implementation Math {
	    commandsOut(1,1,1)=0.5;  // steering
        commandsOut(2,1,1)=0.8;  // acceleration
        commandsOut(3,1,1)=0.0;  // brake
    }
}