Skip to content
Snippets Groups Projects
Commit 7a96d6a3 authored by Federico Lolli's avatar Federico Lolli
Browse files

[ARP] Remove unused methods in SMController

parent 7f802e3a
No related branches found
No related tags found
1 merge request!39Draft: Integration of core logic in ARP State Machine Controller
......@@ -79,12 +79,6 @@ bool SMController::start()
return ActiveObject::start() && ok;
}
void SMController::setRocketNasState(const NASState newRocketNasState)
{
propagator.setRocketNasState(newRocketNasState);
follower.setLastRocketNasState(newRocketNasState);
}
void SMController::setAntennaCoordinates(
const Boardcore::GPSData& antennaCoordinates)
{
......@@ -117,22 +111,6 @@ void SMController::setInitialRocketCoordinates(
}
}
// bool SMController::trySetRocketCoordinates(
// const Boardcore::GPSData& rocketCoordinates)
// {
// if (testState(&SMController::state_fix_rocket) ||
// testState(&SMController::state_fix_rocket_nf) &&
// rocketCoordinates.fix != 0)
// {
// follower.setInitialRocketCoordinates(rocketCoordinates);
// return true;
// }
// else
// {
// return false;
// }
// }
void SMController::update()
{
switch (status.state)
......
......@@ -63,11 +63,6 @@ public:
Boardcore::State state_fix_rocket_nf(const Boardcore::Event& event);
Boardcore::State state_active_nf(const Boardcore::Event& event);
/**
* @brief Setter for the rocket NAS state (used in the propagator)
*/
void setRocketNasState(const Boardcore::NASState newRocketNasState);
/**
* @brief Setter for the antenna coordinates
* @details works only in the `fix_antennas` state
......@@ -81,16 +76,6 @@ public:
void setInitialRocketCoordinates(
const Boardcore::GPSData& antennaCoordinates);
// /**
// * @brief This sets the rocket coordinates if the state is `fix_rocket`
// (or
// * `fix_rocket_nf`)
// * @return `true` if the coordinates were set successfully, `false`
// * otherwise (i.e. the state is not `fix_rocket` or `fix_rocket_nf`)
// */
// bool trySetRocketCoordinates(const Boardcore::GPSData&
// rocketCoordinates);
// Starts the FSM thread and adds an update function into the scheduler
bool start() override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment