Replies: 3 comments
-
| 
         One step more: Could make it run, but it is insane: I first need to derive the crcExtra() from the message, which isn't too complicated. Then I need to convert my msg of type frame.Message to RawMessage in order to be able to call fr.GenerateCRC(). But finally it works, I'm just mad with the Message->RawMessage transition step Working agains ArduPilotSimulator (Set Mode Guided, ARM, Mission Clear All, Mission Upload, Mission Start here): I hope somebody will say: Idiot, it is that easy, look here...:)  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hello, if you want to log a frame, the frame must be valid. If you build frames in this way: 	fr := &frame.V2Frame{
		SystemID:    mc.sysID,    
		ComponentID: mc.compID,    
		Message:     msg,          
	}They are missing the checksum. There's an utility to recompute the checksum, that is  func (mc *MavlinkClient) logOutgoingMessage(msg message.Message, node *gomavlib.Node) {
	fr := &frame.V2Frame{
		SystemID:    mc.sysID,    
		ComponentID: mc.compID,    
		Message:     msg,          
	}
	node.FixFrame(fr)
} | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I think I solved that mesnwhile. Thanks  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My tlogWriter setup (snip off):
With that
output.tlogis created and I'm able to log each incoming message like so (snip off):whereas
That works fine!
Now I'm trying to also log my outgoing message, so messages like this one (snip off):
whereas
I'm getting a log entry, for instance when sending the ARM command, but
mavlogdump.pycomplains about missing/wrong CRC:Can somebody give me a pointer, how to create an entry with a valid CRC?
Beta Was this translation helpful? Give feedback.
All reactions