Native SENT TPS input #5079

This commit is contained in:
rusefi 2023-02-14 20:39:25 -05:00
parent 7317589d23
commit 4fc1f5ad24
3 changed files with 8 additions and 0 deletions

View File

@ -157,6 +157,11 @@ const ignition_state_s* getLiveData(size_t) {
return &engine->ignitionState;
}
template<>
const sent_state_s* getLiveData(size_t) {
return &engine->sent_state;
}
static const FragmentEntry fragments[] = {
// This header is generated - do not edit by hand!
#include "live_data_fragments.h"

View File

@ -25,6 +25,7 @@
#include "ac_control.h"
#include "knock_logic.h"
#include "idle_state_generated.h"
#include "sent_state_generated.h"
#include "dc_motors_generated.h"
#include "idle_thread.h"
#include "injector_model.h"
@ -273,6 +274,7 @@ public:
EngineState engineState;
dc_motors_s dc_motors;
sent_state_s sent_state;
/**
* idle blip is a development tool: alternator PID research for instance have benefited from a repetitive change of RPM

View File

@ -46,6 +46,7 @@ public enum StateDictionary {
register(live_data_e.LDS_fuel_computer, FuelComputer.VALUES, "fuel_computer");
register(live_data_e.LDS_antilag_system_state, AntilagSystem.VALUES, "antilag_system");
register(live_data_e.LDS_dc_motors, DcMotors.VALUES, "dc_motors");
register(live_data_e.LDS_sent_state, SentState.VALUES, "sent");
if (map.size() != live_data_e.values().length) {
Set<live_data_e> missing = new HashSet<>(Arrays.asList(live_data_e.values()));
missing.removeAll(map.keySet());