mount-ctrl_sampling1000-damping002 0.1.0

Giant Magellan Telescope mount control system (1kHz sampling,2% damping)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use cc;
use std::path::Path;

fn main() {
    let path = Path::new("src/controller");
    for controller in ["controller", "ze00", "ze30", "ze60"] {
        let compile = format!("mount_{controller}");
        cc::Build::new()
            .file(path.join(controller).join("Mount_Control.c"))
            .file(path.join(controller).join("Mount_Control_data.c"))
            .compile(compile.as_str());
    }
    cc::Build::new()
        .file("src/drives/Mount_Drv_PDR2021.c")
        .compile("mount_drives");
}