All the docs I have are in the description of that mod. I don't think it's complicated to use. I hid as much of the internals as I could from any mod using it, because I don't want to deal with what that code does when working with the cannon. That event is the real deal, it lets me have my custom behavior use that toggle.
the only things orbital cannon do is hook up to this event in the control stage so I can turn it off as needed,
[defines.events["powered_machine_enabled_orbital-cannon"]] = function(event)
internal.enable_cannon(event.entity, event.running)
end
Then have this field on the cannon's entity prototype. Specifies how much energy should be used, and also adds pollution.
powered_machine = {
heating_energy = "0kW",
energy_usage = settings.startup["orbital-cannon-energy-consumption"].value,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions_per_minute = { pollution = 2 },
},
},