MIAC dsPIC GPS Latitude Longitude

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Monie Jacobsen
Posts: 325
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 9 times
Been thanked: 37 times
Contact:

MIAC dsPIC GPS Latitude Longitude

Postby Monie Jacobsen » Wed Jun 06, 2018 9:41 am

Hi Leigh,

Attempts to get attachment to work in MIAC (dsPIC) but get a lot of error messages.
Would you like to find the error.
attached file:
MIAC dsPIC GPS Latitude Longitude.fcfx
(63.54 KiB) Downloaded 8 times


Compile message:

Code: Select all

Target folder: C:\Users\Bruger\Desktop\TILFOR~1
Source name:   C:\Users\Bruger\Desktop\Til Forum\MIAC Arduino GPS Latitude Longitude-OK.fcfx
Title:         
Description:   
Device:        PIC16.33E.MIAC (dsPIC)
Generated by:  Flowcode v7.3.0.5
Date:          Wednesday, June 06, 2018 09:09:28
Users:         1
Registered to: monie jacobsen
Licence key:   YUWNEC
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat  "MIAC Arduino GPS Latitude Longitude-OK" "C:\Users\Bruger\Desktop\TILFOR~1\" "33EP256MU806"
Launching compiler...

C:\Users\Bruger\Desktop\TILFOR~1>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "MIAC Arduino GPS Latitude Longitude-OK".c -o "MIAC Arduino GPS Latitude Longitude-OK".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_OpenFile':
MIAC Arduino GPS Latitude Longitude-OK.c:1467:5: error: 'MIAC_CAN_TX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1467:5: note: each undeclared identifier is reported only once for each function it appears in
MIAC Arduino GPS Latitude Longitude-OK.c:1490:2: warning: implicit declaration of function 'MIAC_Module_WR'
MIAC Arduino GPS Latitude Longitude-OK.c:1492:2: warning: implicit declaration of function 'MIAC_Module_GetAck'
MIAC Arduino GPS Latitude Longitude-OK.c:1498:10: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_Longitude':
MIAC Arduino GPS Latitude Longitude-OK.c:1514:2: warning: implicit declaration of function 'MIAC_Module_Message'
MIAC Arduino GPS Latitude Longitude-OK.c:1517:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1517:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_GroundSpeed':
MIAC Arduino GPS Latitude Longitude-OK.c:1540:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1540:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_Latitude':
MIAC Arduino GPS Latitude Longitude-OK.c:1563:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1563:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_DilutionOfPrecision':
MIAC Arduino GPS Latitude Longitude-OK.c:1586:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1586:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_Init':
MIAC Arduino GPS Latitude Longitude-OK.c:1621:3: warning: implicit declaration of function 'MIAC_Module_GetData'
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_Over_Ground':
MIAC Arduino GPS Latitude Longitude-OK.c:1641:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1641:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_UTC_Date':
MIAC Arduino GPS Latitude Longitude-OK.c:1664:2: warning: implicit declaration of function 'MIAC_Module_PushData'
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_HorizontalDilutionOfPrecision':
MIAC Arduino GPS Latitude Longitude-OK.c:1693:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1693:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_ScanCurrentFolder':
MIAC Arduino GPS Latitude Longitude-OK.c:1717:2: warning: implicit declaration of function 'MIAC_Module_SetData'
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_AppendStringToFile':
MIAC Arduino GPS Latitude Longitude-OK.c:1783:5: error: 'MIAC_CAN_TX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1814:10: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_OpenFolder':
MIAC Arduino GPS Latitude Longitude-OK.c:1851:5: error: 'MIAC_CAN_TX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:1882:10: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_CreateFile':
MIAC Arduino GPS Latitude Longitude-OK.c:2037:5: error: 'MIAC_CAN_TX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:2068:10: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_VerticalDilutionOfPrecision':
MIAC Arduino GPS Latitude Longitude-OK.c:2087:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:2087:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__GPS_Read_Altitude':
MIAC Arduino GPS Latitude Longitude-OK.c:2129:2: error: 'FloatConv' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:2129:27: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__FAT_DeleteFile':
MIAC Arduino GPS Latitude Longitude-OK.c:2258:5: error: 'MIAC_CAN_TX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c:2289:10: error: 'MIAC_CAN_RX' undeclared (first use in this function)
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCD_0f7c1_ma_gps1__Initialize':
MIAC Arduino GPS Latitude Longitude-OK.c:2343:2: warning: implicit declaration of function 'MIAC_Module_Init'
MIAC Arduino GPS Latitude Longitude-OK.c: In function 'FCM_Solar_position':
MIAC Arduino GPS Latitude Longitude-OK.c:3097:2: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards qualifiers from pointer target type
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:557:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
MIAC Arduino GPS Latitude Longitude-OK.c:3104:2: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards qualifiers from pointer target type
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:557:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
MIAC Arduino GPS Latitude Longitude-OK.c:3116:2: warning: passing argument 1 of 'MIAC_PrintString' discards qualifiers from pointer target type
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:385:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
MIAC Arduino GPS Latitude Longitude-OK.c:3132:2: warning: passing argument 1 of 'MIAC_PrintString' discards qualifiers from pointer target type
C:\Program Files (x86)\Flowcode 7\CAL\/MIAC\MIAC_CAL_API.c:385:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'

Error returned from [xc16-gcc.exe]
Completed compilation, return = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1



FINISHED
Best Regard
Monie

User avatar
LeighM
Matrix Staff
Posts: 1482
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 377 times
Been thanked: 534 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby LeighM » Wed Jun 06, 2018 9:50 am

Hi Monie,
Your project target needs to be "MIAC (dsPIC) System"

Monie Jacobsen
Posts: 325
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 9 times
Been thanked: 37 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby Monie Jacobsen » Wed Jun 06, 2018 10:57 am

Hi Leigh,
Thank you very much, it works now.)
I will then use the "MIAC (dsPIC) System".
What is the difference between the "MIAC (dsPIC) System" and "MIAC (dsPIC)" ???
I'm really very pleased that the codes work now

GO'Working day for you Leigh
These users thanked the author Monie Jacobsen for the post:
LeighM (Wed Jun 06, 2018 11:34 am)
Rating: 5.88%
 
Best Regard
Monie

User avatar
LeighM
Matrix Staff
Posts: 1482
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 377 times
Been thanked: 534 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby LeighM » Wed Jun 06, 2018 11:34 am


Monie Jacobsen
Posts: 325
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 9 times
Been thanked: 37 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby Monie Jacobsen » Fri Jun 08, 2018 7:18 am

Hi Leigh,
Have tried a lot time with a function like "1 step back". Return to Date and Time
loop unit Back key pressed (Key 6)
Step back.JPG
Step back.JPG (12.36 KiB) Viewed 280 times

Attached file:
MIAC dsPICSetting Date Time-OK-002.fcfx
(117.99 KiB) Downloaded 8 times
Best Regard
Monie

User avatar
LeighM
Matrix Staff
Posts: 1482
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 377 times
Been thanked: 534 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby LeighM » Fri Jun 08, 2018 1:29 pm

Hi Monie
Does this help ...
back.jpg
back.jpg (36.63 KiB) Viewed 262 times

Monie Jacobsen
Posts: 325
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 9 times
Been thanked: 37 times
Contact:

Re: MIAC dsPIC GPS Latitude Longitude

Postby Monie Jacobsen » Fri Jun 08, 2018 6:01 pm

Hi Leigh,
Thank you very much.
Just to print to my memory.

GO'Weekend
Best Regard
Monie