Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
plant_model_fit.h File Reference

The plant model fit as the auto-tuning program offers it, in the shape the procedure registry takes. More...

#include <expected>
#include <optional>
#include <string>
#include "auto_tuning/client.h"
#include "node/plant_identification.h"
Include dependency graph for plant_model_fit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mm
 

Functions

std::string mm::plantMeasurementCsv (const node::PlantMeasurement &measurement)
 Renders a measurement as the CSV identify_plant_model reads.
 
std::string mm::identifyPlantModelRequest (const node::PlantMeasurement &measurement, double startFrequencyHz, double endFrequencyHz)
 Builds the request body of one identify_plant_model call.
 
std::expected< node::PlantModelFit, std::string > mm::parseIdentifyPlantModelReply (int status, const std::string &body)
 Reads the program's reply.
 
node::PlantModelFitFn mm::makePlantModelFit (const std::optional< auto_tuning::Client > &client)
 The fit callback for the procedure registry.
 

Detailed Description

The plant model fit as the auto-tuning program offers it, in the shape the procedure registry takes.

Everything that knows the program's request and reply formats for identify_plant_model is here, so that mm::node knows neither. The three pure functions are the testable parts. The fourth binds them to a client, or to the absence of one.