Logging¶
lCriticalE( Tdt::ELog::batteryLow, LDS );
Type is missing, no data
lCriticalE( Tdt::ELog::batteryLow, LDS, batteryVoltage );
lCriticalE2( Tdt::ELog::batteryLow, Tdt::EUnit::milliVolt, LDS, batteryVoltage );
lCriticalBatteryLow( batteryVoltage );
#define EV_STR "#1-%X:"
#define EV2_STR "#2-%X-%X:"
#define EV EV_STR format, code1
#define EV2 EV2_STR format, code1, code2
#define lCriticalE(code, msg, ... ) lLogChooser(ELogCategory::Critical, EV, ##__VA_ARGS__ )
#define lCriticalE2(code1, code2, msg, ... ) lLogChooser(ELogCategory::Criticalcode, EV2, ##__VA_ARGS__ )
Is it worth it? Low level functions will not use event codes anyways and application functions called in main loop can just send CAN messages.
TDT should just provide functions.
Biwak is using it in CAN transmit. Thats nice to keep track of problems. Showing errors on 7segment-displays would be bossible. Keep critical problems traceable.
Seeing undervoltage problems afterwards would also be nice.
Call log code manually?
Von Maximilian Seesslen vor etwa 8 Stunden aktualisiert · 2 Revisionen