#[unsafe(no_mangle)]pub extern "C" fn pamoja_power_plan_mode( plan: PamojaPowerPlan, soc: f32, ) -> PamojaPowerMode
Returns the mode a plan calls for at a state of charge.
A charge that is not a number, such as a fuel gauge that failed to answer, is taken as critical.
plan
soc
The mode the node should run in.