basecamelectronics / sbgc32-serial-api

A complete C-library and example projects for the SimpleBGC32 Serial API integration. Serial API allows to communicate with all gimbal controllers developed by Basecamelectronics company.
Apache License 2.0
24 stars 12 forks source link

SBGC32_GetAnglesExt does not read frameCamAngle (Linux/ARM64) #1

Closed poett1 closed 3 weeks ago

poett1 commented 1 year ago

Hello,

I am trying to use the Serial API on a Nvidia Jetson to control a two axis gimbal (yaw/pitch) with the BaseCam SimpleBGC 32-bit Extended Controller and experienced a problem with the SBGC32_GetAnglesExt function. Somehow the frameCamAngle information is not received correctly. frameCamAngle for AxisGAE[0] and AxisGAE[1] remain 0, AxisGAE[1] gets very high negative values (e.g. -281474976710656). These values are transferred correctly using SBGC32_ReadRealTimeData4, so I think it should be due to the API itself. I noticed that this error only occurs on my ARM64 machine. The same code on AMD64 works fine, identical values are transferred via SBGC32_GetAnglesExt and SBGC32_ReadRealTimeData4. Both machines are running Ubuntu 20.04. Seems like some arch-dependent differences in the API/used libraries?

Thanks a lot & Kind regards Patrick