Questions and discussions about the software that runs on the TD RF module itself.
giovanni
 
Posts: 10
Joined: Mon Jun 22, 2015 1:04 pm

Assertion failing on TD_SENSOR_SendDataPosition

by giovanni Tue Jun 21, 2016 10:53 am

I was able to get valid GPS fixes but not send them using the sendDataPosition function.

TD_SENSOR_SendDataPosition(GPS_DATA_XYZ_SV_HDOP, fix, 0, 0); fails because of an assertion in sensor_data.c line 96.
EFM_ASSERT(length < TD_SENSOR_PAYLOAD_SIZE - 1); this assertion fails because length is 9 and TD_SENSOR_PAYLOAD_SIZE is 10.

Am I doing something wrong?
For the time beïng I've changed the assertion to EFM_ASSERT(length <= TD_SENSOR_PAYLOAD_SIZE - 1);

Or do I need te set or change something else?

Kind regards
Return to Firmware

Who is online

Users browsing this forum: No registered users and 32 guests