va3wam / TWIPe

This repository contains the embedded code used for the TWIPe robot
MIT License
2 stars 0 forks source link

Display does not update if no network #76

Closed va3wam closed 3 years ago

va3wam commented 3 years ago

If Twipe fails to connect to the WiFi access point he does not update his OLED displays when he is put past 30 degrees. The desired behaviour is to show the MAC address and a message that says no WiFi.

nerdoug commented 3 years ago

The code does actually update the OLED display with the current network parameters. Since they're not initialized, they default to null strings, which looks like a failure to display. I've changed the default strings to things like "-no IP address'" where the IP address is normally displayed. This means that the same display is done at setup() and at vertical-30. I'm changing the right OLED to show setup() stage, and then balance state. Also optimizing the OLED display routines which eat a lot of CPU currently.