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

RealTimeDataCustom.IMU_Angles[ROLL], [PITCH], [YAW] give no data #3

Closed kev278 closed 3 weeks ago

kev278 commented 2 months ago

I edited the main.c to include RealTimeDataCustom.IMU_Angles[ROLL] and this returns 0. In fact, everything except the acc, gyro, and framcam returns 0. Is there a fix to this? We are trying to get the IMU_Angles, batLevel and basically everything that is in the RealTimeCustomData

dotanAtTrim commented 2 months ago

What's your change "to include RealTimeDataCustom.IMU_Angles[ROLL]"? (For future - always provide such information). Have you configured the realtime data request configuration? ui32 DataStreamIntervalConfig = RTDCF_STATOR_ROTOR_ANGLE | RTDCF_GYRO_DATA | RTDCF_ACC_DATA;

It's worth mentioning that it seems that the C library doesn't support all the data fields described in the API documentation.