Object Question
briank77479
Posts: 36
in Propeller 1
Need a refresher/review on using "objects". I have a spin file called "HMC5883L_data" that is a trimmed version of the "HMC5883" file downloaded from Parallax. I trimmed it down to read/display the Azimuth. The second file, "HMC5883Compass" is the start a spin file in which I hope to take the Azimuth and use it to calculate additional variables. The issue as it stands is I'm having difficulty bringing the Azimuth value into the second file. As the file is now I keep getting a "Expected Subroutine Name" error.
I ask for guidance on what I need to do to correct this.
Thank you for your help!!
I ask for guidance on what I need to do to correct this.
Thank you for your help!!
spin
607B
Comments
HMC.start(aziadjust) the word "start" is highlighted. The "aziadjust" is the subroutine in the "data" code that calculates the azimuth. Tried a variety of configurations on the line to call the object.
Thanks
Again thank you for your help!!
Thank you very much!!