A Piece of code to make adjusting lobe timing easier
by AbdullahAj
Posted
625 views
54 downloads
1 points

	label lobe_sep(114 * units.deg)
	label lobe_advance(0 * units.deg)
	// 1 for normal direction, -1 for reverse direction
	label is_not_reverse(1)

    generated_camshaft camshaft(
        lobe_profile: "N/A",

        intake_lobe_profile: intake_lobe,
        exhaust_lobe_profile: exhaust_lobe,
        intake_lobe_center: (lobe_sep - lobe_advance) * is_not_reverse,
        exhaust_lobe_center: (lobe_sep + lobe_advance) * is_not_reverse,
		base_radius: 700 * units.thou
    )

main.mr
import "engine_sim.mr"
import "themes/default.mr"
import "engines/abdullahaj/viper.mr"

use_default_theme()

set_engine(generated_engine())

2700 registered users.
1498 parts by 330 creators.
755 visitors right now. 0 logged in.
1.8m views and 786k downloads.