Other Parts Discussed in Thread: CC2538
Tool/software: Code Composer Studio
Hello!
I am using the ZNP-HOST_FRAMEWORK project "cmdLine" with the TM4C1294XL, CCEM Booster Pack and the CC2538. I am trying to add some code I previously wrote in Visual Studios (in C++) to this project. I have verified that my code works in Visual Studio. I'm not getting any errors or warnings about my new code in the Code Composer Studio project "cmdLine". However, my code isn't working properly in Code Composer Studio. Basically, the code I wrote performs trilateration using pre-defined values (NOT values obtained from the microcontroller. I want to make sure it works with theoretical values first before using real-time values from the microcontroller). My code uses variable types "double" and "int", and I noticed the Code Composer Studio Code uses mainly "uintX_t" and "intX_t", where X is 8, 16, 32, or 64.
I'm not sure why my code isn't working in Code Composer Studio, but I'm suspecting it may be because Code Composer Studio doesn't recognize the data type "double"? How is the double data interpreted? Do I need to convert the data to another format? I should mention that I'm using RSSI values, so there are negatives and decimal values that I need to keep--I cannot truncate or round the numbers. Could something else be the issue?
I've attached the modified file "cmdLine.cpp", which consists of all of my code. In this file I've made it clear as to what lines I've added by writing my name in the variable name and the comments.
Thank you!
- Tessa