Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions CanAutoNode/LogTypes/SOLLogs.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* CanStructs.hpp
*
* Created on: May 2, 2026
* Author: Local user
*/

#ifndef SOLLOGS_HPP_
#define SOLLOGS_HPP_

#include "LogStructs.hpp"
#include "CanAutoNodeDaughter.hpp"



// Custom Data Types
struct SOL_POWER_COMMAND {
enum SOLENOID {
SOL_15W_A,
SOL_15W_B,
SOL_15W_C,
SOL_15W_D,
SOL_30W_A,
SOL_30W_B
} sol;
bool powerOn;
};


// Add CAN logs here in the order you want them
#define SOL_CAN_LOGS \
X(SOL_POWER_COMMAND)

#define X(x) sizeof(x),
const CanAutoNodeDaughter::LogInit SOL_Init[] = {SOL_CAN_LOGS};
#undef X

#define X(x) _ ## x ## _LOGINDEX,
enum SOL_LogIndexes {SOL_CAN_LOGS SOL_COUNT} ;
#undef X

#endif /* SOLLOGS_HPP_ */