I am trying to access the power state of my SENZ3D camera and I seem to be having some trouble.
I am attempting to do so like this:
PXCSession* session = pp.QuerySession(); PXCPowerState* state = session->DynamicCast<PXCPowerState>(); state->SetState(PXCPowerState::STATE_C3);
where "pp" is a utilpipeline instance. This doesn't work, it is trying to access bad memory and crashing.
I would appreciate any help with the proper syntax for working with the powerstate.