A Piece of code to make adjusting lobe timing easier
by AbdullahAj
Posted
635 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())

2810 registered users.
1545 parts by 335 creators.
636 visitors right now. 0 logged in.
1.9m views and 829k downloads.