# Was with keya

**URL:** <https://discourse.agopengps.com/t/was-with-keya/20745>\
**Category:** Software\
**Tags:** Francais\
**Created:** [7 May 2026 22:06 UTC](https://discourse.agopengps.com/t/was-with-keya/20745 "2026-05-07T22:06:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [7 May 2026 22:06 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/1 "2026-05-07T22:06:20Z")

</div>

Hello everyone,  
I’ve written a code to use the Keya encoder instead of the steering angle sensor. To synchronize the encoder with the actual wheel angle, I based it on Marek’s idea of ​​automatically zeroing the WAS. My code performs an initial zero at startup and then continuously zeros the encoder based on the GPS and IMU bearings. The tolerances are adjustable via a web interface.

To simplify use, to use WAS mode with the Keya, you must activate Danfoss mode. Deactivating it reverts to normal WAS mode.

The code was initially based on code for Manu’s PCB ECU from the French group. I adapted it for the AIO. Note that some have GPS on serial number 7, others on serial number 2; you’ll need to change it manually.

Testing has been done for a while now, and everything seems to be working without any problems. Code on my GitHub: [GitHub - Flodu81/AIO\_Keya\_WasKeyaFiltre: AOG code to use the Keya encoder as an angle sensor · GitHub](https://github.com/Flodu81/AIO_ECU_Keya_WasKeyaFiltre)

---

<div class="post-metadata">

**Author:** ![Ebedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/e/e495f1/32.png) [@Ebedel](https://discourse.agopengps.com/u/Ebedel)\
**Post date:** [8 May 2026 00:58 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/2 "2026-05-08T00:58:03Z")

</div>

Hello, this looks interesting does this work with a TM171 imu?

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [8 May 2026 05:47 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/3 "2026-05-08T05:47:51Z")

</div>

Yes, but I haven’t tested it 100% yet, just in the office; I wasn’t the one who tested it.

---

<div class="post-metadata">

**Author:** ![MERDLP](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@MERDLP](https://discourse.agopengps.com/u/MERDLP)\
**Post date:** [8 May 2026 07:31 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/4 "2026-05-08T07:31:06Z")

</div>

Really would like to try this on a swather… Has this been tested on dual antenna? Agopen v4.5 board?

Or if someone could help guide me through the modifications so I could test… It would be great!

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [8 May 2026 12:36 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/5 "2026-05-08T12:36:17Z")

</div>

I’ve started adapting the dual but haven’t tested it yet, and you on Telegram, I’ll adapt it to AIO and I can send it to you?

---

<div class="post-metadata">

**Author:** ![MERDLP](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@MERDLP](https://discourse.agopengps.com/u/MERDLP)\
**Post date:** [8 May 2026 13:32 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/6 "2026-05-08T13:32:44Z")

</div>

That would be great… Private message me and I’ll get you my telegram…

---

<div class="post-metadata">

**Author:** ![del\_boy](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/del_boy/32/14831_2.png) [@del\_boy](https://discourse.agopengps.com/u/del_boy)\
**Post date:** [8 May 2026 14:22 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/7 "2026-05-08T14:22:30Z")

</div>

I also think this could be good with dual antenna  
Um982 paogi messages would be good i think

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [8 May 2026 15:40 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/8 "2026-05-08T15:40:16Z")

</div>

I’ve written the code for the PCB ECU made in France; I need to adapt it to the AIO.

---

<div class="post-metadata">

**Author:** ![RTKAG](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/r/b3f665/32.png) [@RTKAG](https://discourse.agopengps.com/u/RTKAG)\
**Post date:** [31 July 2026 12:15 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/9 "2026-07-31T12:15:11Z")

</div>

Hi,  
Will this code work with the u-blox F9P GPS board? Could someone send me a ready-made file (hex) to upload to the Teensy? I’m having trouble compiling; I’m getting the error: `Compilation error: 'class HardwareSerial' has no member named 'addMemoryForRead'`.

---

<div class="post-metadata">

**Author:** ![Hobbyfarmer](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@Hobbyfarmer](https://discourse.agopengps.com/u/Hobbyfarmer)\
**Post date:** [3 August 2026 17:58 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/10 "2026-08-03T17:58:00Z")

</div>

Down grade board ware in ide to 1.57

---

<div class="post-metadata">

**Author:** ![RTKAG](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/r/b3f665/32.png) [@RTKAG](https://discourse.agopengps.com/u/RTKAG)\
**Post date:** [4 August 2026 20:09 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/11 "2026-08-04T20:09:45Z")

</div>

Should I choose the Teensy 1.57 instead of the 4.1?

---

<div class="post-metadata">

**Author:** ![Ebedel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/e/e495f1/32.png) [@Ebedel](https://discourse.agopengps.com/u/Ebedel)\
**Post date:** [4 August 2026 23:23 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/12 "2026-08-04T23:23:06Z")

</div>

Just down grade your IDE software. To 1.57  
Still using teensy 4.1  
You might need to reinstall software.

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [5 August 2026 20:58 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/13 "2026-08-05T20:58:22Z")

</div>

Yes you have to put teensyduino in version 1.57, if you can’t contact me on telegram it will be easier, and I will guide you on the settings of the 0 auto

---

<div class="post-metadata">

**Author:** ![Jakem0402](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@Jakem0402](https://discourse.agopengps.com/u/Jakem0402)\
**Post date:** [24 August 2026 21:22 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/14 "2026-08-24T21:22:55Z")

</div>

How user friendly is this? Does it require setting a zero position everytime or can I just jump in the tractor and go?

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [25 August 2026 05:35 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/15 "2026-08-25T05:35:37Z")

</div>

Yes, it’s very easy. You enter my code, activate Danfoss mode, and then it performs an initial automatic zeroing each time you start the system, but you won’t even notice it. You just need to drive a little straight. After that, the automatic zeroing happens continuously without you realizing it. If you’re still not convinced, you can turn off Danfoss and switch back to classic WAS mode.

---

<div class="post-metadata">

**Author:** ![Jakem0402](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@Jakem0402](https://discourse.agopengps.com/u/Jakem0402)\
**Post date:** [25 August 2026 10:48 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/16 "2026-08-25T10:48:01Z")

</div>

Ill give it a try. It works on AIO with F9P and BNO?

---

<div class="post-metadata">

**Author:** ![MERDLP](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@MERDLP](https://discourse.agopengps.com/u/MERDLP)\
**Post date:** [25 August 2026 18:08 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/17 "2026-08-25T18:08:33Z")

</div>

Had tried this a few months ago and at that point it was not adapted to aio… Has this been accomplished and will it work with dual F9P gps without BNO?

---

<div class="post-metadata">

**Author:** ![del\_boy](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/del_boy/32/14831_2.png) [@del\_boy](https://discourse.agopengps.com/u/del_boy)\
**Post date:** [25 August 2026 18:36 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/18 "2026-08-25T18:36:35Z")

</div>

Not sure on dual yet but i believe it works with bno085 and tm171 imu

---

<div class="post-metadata">

**Author:** ![Flo](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://discourse.agopengps.com/u/Flo)\
**Post date:** [26 August 2026 05:32 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/19 "2026-08-26T05:32:34Z")

</div>

Yes, I haven’t adapted it for dual yet. I’ve started looking for a dual version for the UM982, then there’s the F9P dual version.

---

<div class="post-metadata">

**Author:** ![del\_boy](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/del_boy/32/14831_2.png) [@del\_boy](https://discourse.agopengps.com/u/del_boy)\
**Post date:** [26 August 2026 05:46 UTC](https://discourse.agopengps.com/t/was-with-keya/20745/20 "2026-08-26T05:46:31Z")

</div>

From my experience with dual um982 paogi messages seem to work better than kxst pass through messages

[Next page](https://discourse.agopengps.com/t/was-with-keya/20745.md?page=2)
