I have the payload from the SignalK value as the following in a node red flow, but I am not sure how to separate them into two separate values to perform some calculations on them.
When I use the split node, I get the values, but lose the "roll" and "pitch" names from the subsequent outputs
I tried to use a "change" to delete roll and pitch from the message in two different change nodes to branch the thread message payloads, but that failed.
Could someone point me in the right direction on the best way to pull the values from the payload? I would also like to do this with the long/lat position values once I get it working.
Code:
object
roll: -0.0008377580640000001
pitch: -0.0005061454970000001
yaw: null
When I use the split node, I get the values, but lose the "roll" and "pitch" names from the subsequent outputs
Code:
1/26/2020, 7:27:13 PMnode: b92f2e27.99214
navigation.attitude : msg.payload : number
-0.000785398185
1/26/2020, 7:27:13 PMnode: b92f2e27.99214
navigation.attitude : msg.payload : number
0.00022689280900000004
1/26/2020, 7:27:13 PMnode: b92f2e27.99214
navigation.attitude : msg.payload : null
null
I tried to use a "change" to delete roll and pitch from the message in two different change nodes to branch the thread message payloads, but that failed.
Could someone point me in the right direction on the best way to pull the values from the payload? I would also like to do this with the long/lat position values once I get it working.