28 const char* sk_path =
"propulsion.main.revolutions";
44 const char* config_path =
"/sensors/engine_rpm";
50 const char* config_path_calibrate =
"/sensors/engine_rpm/calibrate";
51 const char* config_path_skpath =
"/sensors/engine_rpm/sk";
61 const float multiplier = 1.0 / 97.0;
62 const unsigned int read_delay = 500;
70 auto frequency =
new Frequency(multiplier, config_path_calibrate);
73 ->set_title(
"Frequency")
74 ->set_description(
"Frequency of the engine RPM signal")
75 ->set_sort_order(1000);
77 auto frequency_sk_output =
new SKOutput<float>(sk_path, config_path_skpath);
80 ->set_title(
"Frequency SK Output Path")
81 ->set_sort_order(1001);
84 ->connect_to(frequency)
86 ->connect_to(frequency_sk_output);
Transforms its input into frequency (Hz: cycles per second)
A specialized transform whose primary purpose is to output Signal K data on the Signal K network.
A class for quickly configuring a SensESP application object before wiring up your sensors.
std::shared_ptr< SensESPApp > get_app()
Get the SensESPApp object.
std::shared_ptr< reactesp::EventLoop > event_loop()
std::shared_ptr< SensESPApp > sensesp_app
std::shared_ptr< ConfigItemT< T > > ConfigItem(std::shared_ptr< T >)
Register a ConfigItemT with the ConfigItemBase.
void SetupLogging(esp_log_level_t default_level=ESP_LOG_DEBUG)