ED Tracker 2.9 (Friday 13th)

when you say loaded, as in loaded into Arduino, or loaded onto the device?

You need to load it into the device, with the calibration sketch open in the Arduino IDE and the device connected, click the "Upload" button (it's a right arrow) on the IDE toolbar. If all goes well the program will compile and be sent to the device.
 
You need to load it into the device, with the calibration sketch open in the Arduino IDE and the device connected, click the "Upload" button (it's a right arrow) on the IDE toolbar. If all goes well the program will compile and be sent to the device.
Ahh Ok! Let's hope I don't brick it! :)
 
Is it possible that for this flipping and other probs that numbers are rolling over somewhere and not being trapped?
Know that integer constants default to int, so some constant calculations may overflow (e.g. 60 * 1000 will yield a negative result).

Choose variable sizes that are large enough to hold the largest results from your calculations

Know at what point your variable will "roll over" and also what happens in the other direction e.g. (0 - 1) OR (0 - - 32768)
 
The flipping/180 degree issue should now be fixed :)

The calibration sketch does not apply drift track so if you leave it running the head will eventually rotate to 180 degrees but it no longer 'locks' at the angle. In use (main tracker sketch) it should no longer lock after a period of gameplay.

Also added option to calibration sketch/UI to set bias values to factory default.

https://github.com/pocketmoon/EDTracker2

The issue was caused by applying an ever increasing yaw offset... So the yaw angle from the sensor starts at 0 and then slowly drifts. The yaw compensation increases to bring bring it back to zero. So after 20 minutes the yaw value from the sensor could be +179 degrees and the yaw compensation -179 So then the actual yaw wraps around to -179 but the yaw comp is still is now -182 which adds up to a big negative number.
Solution is to wrap the post-yaw-drift adjusted values as well.
 
Last edited:
Pocketmoon: getting stack overflow when compiling the calibration sketch. The EDtracker sketch compiles ok so there's an error in the calibration sketch and here's some of the outpoint:

Exception in thread "Thread-142" java.lang.StackOverflowError
at java.util.regex.Pattern$GroupHead.match(Unknown Source)
at java.util.regex.Pattern$Loop.match(Unknown Source)
at java.util.regex.Pattern$GroupTail.match(Unknown Source)
at java.util.regex.Pattern$BranchConn.match(Unknown Source)
at java.util.regex.Pattern$CharProperty.match(Unknown Source)
at java.util.regex.Pattern$Branch.match(Unknown Source)
 
hmmm getting this error
EDTrackerII:164: error: 'TrackState_t' does not name a type
EDTrackerII.ino: In function 'void loop()':
EDTrackerII:424: error: 'joySt' was not declared in this scope
EDTrackerII:442: error: 'Tracker' was not declared in this scope
EDTrackerII.ino: In function 'void disable_mpu()':
EDTrackerII:727: error: 'INT6' was not declared in this scope
EDTrackerII.ino: In function 'void enable_mpu()':
EDTrackerII:733: error: 'EICRB' was not declared in this scope
EDTrackerII:733: error: 'ISC60' was not declared in this scope
EDTrackerII:733: error: 'ISC61' was not declared in this scope
EDTrackerII:734: error: 'INT6' was not declared in this scope
 
If you have a gander at the 'Custom Device' section on

http://edtracker.org.uk/index.php/using/software

Once that's installed , close and re-open the Arduino IDE and the select 'EdTracker2' from the board menu and it should compile and load.


Brumster is getting very close with his code that will automatically program the device from the UI - which will make a lot of people happy :)

Pocketmoon, If you check the post before his, there's an issue regarding the tracker sketch preventing it from being compiled.
 
if you leave it running the head will eventually rotate to 180 degrees but it no longer 'locks' at the angle.


Thanks Rob will have a play now with it, do you mean if you leave the UI running, or the actual tracker, I have it plugged in all the time as it is now attached to my headset will that cause any issue for me?
 
Pocketmoon: getting stack overflow when compiling the calibration sketch. The EDtracker sketch compiles ok so there's an error in the calibration sketch and here's some of the outpoint:

Exception in thread "Thread-142" java.lang.StackOverflowError
at java.util.regex.Pattern$GroupHead.match(Unknown Source)
at java.util.regex.Pattern$Loop.match(Unknown Source)
at java.util.regex.Pattern$GroupTail.match(Unknown Source)
at java.util.regex.Pattern$BranchConn.match(Unknown Source)
at java.util.regex.Pattern$CharProperty.match(Unknown Source)
at java.util.regex.Pattern$Branch.match(Unknown Source)

I too am getting this on the calibration sketch only, added the new inverselibraries supplied in the zip
 
Pocketmoon, If you check the post before his, there's an issue regarding the tracker sketch preventing it from being compiled.

Argh! Oops. somehow deleted a closed quote near the start...

const char* PROGMEM infoString = "ED Tracker Calibration V2.3;

should be

const char* PROGMEM infoString = "ED Tracker Calibration V2.3";

Fixed and uploaded.

Thanks for the rapid heads up!
 
If you have a gander at the 'Custom Device' section on

http://edtracker.org.uk/index.php/using/software

Once that's installed , close and re-open the Arduino IDE and the select 'EdTracker2' from the board menu and it should compile and load.


Brumster is getting very close with his code that will automatically program the device from the UI - which will make a lot of people happy :)

cool, got that and compiled and uploaded the calibration sketch - but when i go into Serial Monitor, i don't get any numbers? :S

Update

ok uploaded the EDTrackerII and got th EDTrackerUtil running :)
 
Last edited:
Thanks Rob will have a play now with it, do you mean if you leave the UI running, or the actual tracker, I have it plugged in all the time as it is now attached to my headset will that cause any issue for me?

It should be find plugged in all the time as long as it gets turned on/off at least once a day :)
 
cool, got that and compiled and uploaded the calibration sketch - but when i go into Serial Monitor, i don't get any numbers? :S

If you now run the UI it should connect to the tracker and display stuff.

Or if you have the serial monitor open you can type V and send it to the tracker and it will spew stuff out. The UI is the tool to use for calibration and set-up (make sure you close the serial monitor first)
 
If you now run the UI it should connect to the tracker and display stuff.

Or if you have the serial monitor open you can type V and send it to the tracker and it will spew stuff out. The UI is the tool to use for calibration and set-up (make sure you close the serial monitor first)

ok not sure if this is right? head basically turns 180deg over the course of about 10 seconds when i hit the reset button on the tracker?
ED+Tracker+V2.jpg

do i leave this for a while, is it within perimeters, i guess i should read a manual or something? (except i'm dyslexic and hate reading ;) )

edit
Yaw Drift is counting down slowly?
 
Thanks Pocketmoon once again.

One small thing that might be worth doing is using a different key than 0 for resetting factory default values, having it right next to the 9 key I hit that twice now (dark room badly lit keyboard, my own fault) and had to start again.

Been having a blast using this gizmo, loving it.
 
Rob,

Just given this new version a try and it is a leap and a bound forward for me.

I am afraid all good news comes with some bad, but could I please request the letter box to be made at least twide as big or to be configurable.

Thanks
 
Rob,

Just given this new version a try and it is a leap and a bound forward for me.

I am afraid all good news comes with some bad, but could I please request the letter box to be made at least twide as big or to be configurable.

Thanks

Hi Sam - out of interest do you use linear or exponential mode ?
 
Back
Top Bottom