Chassis Controller not Doing Anything

Hey Guys,

My Chassis Controller will not move or do anything when called in autonomous.cpp

Here is the rest of my code
std::shared_ptr mainChassis =
ChassisControllerBuilder()
.withMotors(
{17, 18},
{-14,-16}
)
.withDimensions(AbstractMotor::gearset::blue, {{3.25_in, 11.25_in}, imev5BlueTPR})
.withOdometry()
.buildOdometry();

void autonomous(){
mainChassis->setState({0_in, 0_in, 0_deg});
mainChassis->turnToAngle(90_deg);
hoodDeploy();

Any help would be appreciated.

Thanks
Ani

What is the lifecycle of mainChassis variable?

Could it be that it is going out of scope and gets deleted before it has time to turn?