— 39 —
# Switch # Process "Attitude" PGN 127257
match(CAN1, 0x01F11900, 0x01FFFF00 )
{
H = get(DATA+1, INT16)
if (H != 0x7FFF) # Is heeling valid?
{
load(SLOT3) # Prepare stop pump command
H = H * 0.0180 / M_PI # To degrees
if (H > 0) { # Heeling to starboard
if (H > 20.0)
{
if (A < 100) { # Is level in A not 100%?
load(SLOT1) # Run pump command
}
}
}
else { # Heeling to port
if (H < (0-20.0))
{
if (D < 100) { # Is level in D not 100%?
load(SLOT2) # Other direction
}
}
}
send(CAN1) # Send the command to run/stop
}
}
# End of program
Summary of Contents for YDTA-04N
Page 1: ...User Manual Tank Adapter YDTA 04 also covers models YDTA 04N Firmware version 1 00 2021...
Page 6: ...6 I Product Specification Figure 1 Drawing of Tank Adapter YDTA 04N...
Page 28: ...28 Figure 1 Automatic management of ballast tanks with YDCC 04 and YDTA 04...
Page 33: ...33 Figure 1 Firmware update with CAN Log Viewer...
Page 40: ......