Because of the sparse documentation about most of the advanced features of the suite of software that we call JMRI, I'm not sure if what I'd like to implement is even possible.
Here goes what I'd like to accomplish:
I have a question related to operating in a consist using CV19.
Assume that the consist has the lead and trailing loco coupled in opposite directions, no matter how many locos are in the consist.
?
The issue/question is how do you operate the consist when you want to operate the consist in the opposite direction, specificall concerning CV21-22 which defines which function keys are supposed to respond to the consist address. Obviously, the 'new' lead loco function keys would need to operate differently than when it was a traling loco.
I don't think there's a simple way to reverse operation and have the now lead loco to respond to the function keys as the now new lead loco.
So, although I've actually answered own question, it'd be nice to be able to define direction for function response when direction is changed. Also, you'd have to define which of the consist locos was the trailing loco, so other locos that are not the lead or trailing loco in the consist would still ignore the correct function keys.
So, can a macro type operation read CV values, and then change the CV 21 U& 22 values to accomplish the correct response to function buttons when reversing a consist? I completely understand that there may be different macros needed for various consist combinations, as trying to make it universal would be beyond the ability of most JMRI users.
And lastly, assuming such a macro could be implemented somehow, how would the macro be triggered?
Maybe the decoder manufactures need to help with this, but there's not much chance that would happen.