I am completely lost on what to do with this issue. I'm not very familar with c language, but I know enough to program my Atmel MCU for a controls project. I'm running into an issue where I try to print double variables and all I get out are question marks instead of values. Here is some code:
axg = ax/MPU6050_AXGAIN;
ayg = ay/MPU6050_AYGAIN;
azg = az/MPU6050_AZGAIN;
gxds = gx/MPU6050_GXGAIN;
gyds = gy/MPU6050_GYGAIN;
gzds = gz/MPU6050_GZGAIN;
printf("converted\n\n");
printf(" %f;\n\n %f;\n\n %f;\n\n %f;\n\n %f;\n\n f;\n\n",axg,ayg,azg,gxds,gyds,gzds);
All the printed variables are defined as doubles. The ax,ay,ay,gx,gy,gz are all uint16_t variables. What I am doing is reading 8 bit data from an IMU and storing those values in ax,... etc. Then I need to convert them based of information in the datasheet of my IMU( MPU 6050 in case anyone is curious). Could anyone point me in a direction for trouble shooting this? Everything I have come across indicates that I should be getting values and I don't know where to look any longer.
thanks in advance.
here is my terminal read out
converted
?;
?;
?;
?;
?;
?;