Skip to main content

pamoja_power_plan_mode

Function pamoja_power_plan_mode 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_power_plan_mode( plan: PamojaPowerPlan, soc: f32, ) -> PamojaPowerMode
Expand description

Returns the mode a plan calls for at a state of charge.

§Arguments

  • plan - the power plan.
  • soc - the battery state of charge, from 0.0 through 1.0.

§Returns

The mode the node should run in.