28 double startFrequencyHz,
double endFrequencyHz);
36 int status,
const std::string& body);
Calls made to the running auto-tuning process.
std::function< std::expected< PlantModelFit, std::string >(const PlantMeasurement &measurement, double startFrequencyHz, double endFrequencyHz)> PlantModelFitFn
Fits a plant model to a measurement.
Definition plant_identification.h:55
std::expected< node::PlantModelFit, std::string > parseIdentifyPlantModelReply(int status, const std::string &body)
Reads the program's reply.
Definition plant_model_fit.cc:47
std::string identifyPlantModelRequest(const node::PlantMeasurement &measurement, double startFrequencyHz, double endFrequencyHz)
Builds the request body of one identify_plant_model call.
Definition plant_model_fit.cc:35
node::PlantModelFitFn makePlantModelFit(const std::optional< auto_tuning::Client > &client)
The fit callback for the procedure registry.
Definition plant_model_fit.cc:77
std::string plantMeasurementCsv(const node::PlantMeasurement &measurement)
Renders a measurement as the CSV identify_plant_model reads.
Definition plant_model_fit.cc:24
Plant identification: the model of a motor and its load that auto-tuning computes gains from,...