rdmenezes / qmast

Automatically exported from code.google.com/p/qmast
0 stars 0 forks source link

Changing compass/wind EEPROM #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is a problem caused by:
1. Not emptying the serial buffer
2. Input into serial buffer faster than output

It could lead to:
- Lost data
- Data too frequent and therefore inefficient

To address it:
- Look up how to change the compass/wind EEPROM in their user manuals, which 
stores when to send data
- Write code to send the described commands to the compass and test changing 
the data speed
- This depends on a sailing algorithm written up in detail to determine what 
the ideal data frequencies might be.

Original issue reported on code.google.com by cdmblair@gmail.com on 29 Dec 2010 at 11:24

GoogleCodeExporter commented 9 years ago

Original comment by cdmblair@gmail.com on 4 Jan 2011 at 11:05

GoogleCodeExporter commented 9 years ago

Original comment by cdmblair@gmail.com on 4 Jan 2011 at 11:16

GoogleCodeExporter commented 9 years ago

Original comment by cdmblair@gmail.com on 24 Jan 2011 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by cdmblair@gmail.com on 29 Jan 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Make sure we change the type of data returned to an integer (rather than float) 
where we have the option (ie in the Compass, see Revolution GS Truenorth 
Programming Reference.pdf)

Original comment by cdmblair@gmail.com on 9 Feb 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Tried this:
 Serial2.print("@F0.3=0*66"); //put compass into sample mode so it stops spitting data
 Serial2.print("@B6?*4B"); //ask what baud rate?

 delay(1000);

 while (Serial2.available()>0)
   {
     input = Serial2.read();
     Serial.print(input);
   }

 delay(5000);  

But seeing $PTNTHTM,191.5,N,-0.3,N,-1.5,N,82.0,1371*34 over and over every 5 
seconds. Either wires aren't connected for writing or... ???

Original comment by cdmblair@gmail.com on 11 Feb 2011 at 11:59

GoogleCodeExporter commented 9 years ago
When writing to the Compass, need to use Serial2.println("@F0.3?*54"); (can 
change the command). The println is critical. This is working.

Next: we can edit any settings we want. Next steps are looking into how to 
calibrate the compass, manuals are in the SoftwareManuals folder of dropbox. 

Also think about changing it to Sample mode, or changing the frequency of data 
(ie 1/second?).

Original comment by cdmblair@gmail.com on 15 Feb 2011 at 12:44

GoogleCodeExporter commented 9 years ago
Compass was changed to sample mode, very happy with it that way. 

PB100 doesn't have a sample mode. We're having no luck changing any of the 
eeprom settings with the wind sensor. Try changing without the combiner, using 
only the optoisolator between the arduino and the wind sensor.

Original comment by cdmblair@gmail.com on 10 Apr 2011 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by cdmblair@gmail.com on 10 Apr 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Removed combiner and optoisolator, can now talk to wind sensor again

Original comment by laszloka...@gmail.com on 12 Aug 2011 at 1:44