Skip to content

Commit

Permalink
Update examples/rtcm.py
Browse files Browse the repository at this point in the history
Yes, of course πŸ˜†

Co-authored-by: Julian Oes <[email protected]>
  • Loading branch information
Pjort and julianoes authored Jan 31, 2025
1 parent 26b9783 commit a47804d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rtcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ async def send_data(data):
rtcm_data = bytearray(b'\xd3\x00mCP\x00\x8c2\x16\x82\x00\x00,@\x88\x00\x00\x00\x00\x00 \x00\x00\x00~\x9c\xa4\x9a\x90\xa2\x8c\x00\x00\x01\xa7\xa2\x1e=gv\x8f\x1fq{\\x13_\xc9\xdf\x17\x02L$\xb6\xdd\x17\x9a.\xe8\xba\x94\x02U6^\xa2^\x08\xac\xf5\xf4\x1d\xcc\n\x9d\xe7\xeb\x04R\x15\x92\x93\xf9o\xf2\xc1\xb5-j\xba\xf12`@\r\x83\xc0\xe8B\x0f\x05\xec\x8c\xfc\xc4\x88l\xac\x7f\xf1\x1aR\xc2\xbc\x87') # noqa: E501
# In MAVSDK 3.0.0 the data is expected to be base64 encoded string
base64_rtcm_data = base64.b64encode(rtcm_data).decode('utf-8')
asyncio.run(send_data(RtcmData(str(base64_rtcm_data))))
asyncio.run(send_data(RtcmData(base64_rtcm_data)))

0 comments on commit a47804d

Please sign in to comment.