k3ng_rotator_controller icon indicating copy to clipboard operation
k3ng_rotator_controller copied to clipboard

Head problem on 16x2 LCD display

Open maxmiztejm opened this issue 6 years ago • 13 comments

Hello K3NG! I trying make an your controller with 16x2 Display. The head is shown in this way: Azimuth XXX.X zimuth XXX.X The XXX.X are same in both rows. AZ/EL control feature is enabled. Problem is, that is no Elevation XXX.X text on the second row. Do you have any idea, where is the problem? Thank you!

maxmiztejm avatar Feb 20 '18 21:02 maxmiztejm

What options and settings do you have configured?

On Tue, Feb 20, 2018 at 4:43 PM, maxmiztejm [email protected] wrote:

Hello K3NG! I trying make an your controller with 16x2 Display. The head is shown in this way: Azimuth XXX.X zimuth XXX.X The XXX.X are same in both rows. AZ/EL control feature is enabled. Problem is, that is no Elevation XXX.X text on the second row. Do you have any idea, where is the problem? Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacFux2h7jjFyuqexLbuPYnJewXxhXks5tWzyYgaJpZM4SMt19 .

k3ng avatar Feb 21 '18 00:02 k3ng

#define OPTION_DISPLAY_STATUS #define OPTION_DISPLAY_HEADING #define OPTION_DISPLAY_HEADING_AZ_ONLY #define OPTION_DISPLAY_HEADING_EL_ONLY

#define FEATURE_4_BIT_LCD_DISPLAY #define LCD_COLUMNS 16 #define LCD_ROWS 2

maxmiztejm avatar Feb 21 '18 09:02 maxmiztejm

I also need to see the settings you have for the various rows, like these:

#define LCD_HEADING_ROW 2 #define LCD_HEADING_FIELD_SIZE 20 #define LCD_AZ_ONLY_HEADING_ROW 1 #define LCD_AZ_ONLY_HEADING_FIELD_SIZE 20 #define LCD_EL_ONLY_HEADING_ROW 2 #define LCD_EL_ONLY_HEADING_FIELD_SIZE 20 #define LCD_STATUS_ROW 1 #define LCD_STATUS_FIELD_SIZE 20

However, not knowing these, I would say turn off OPTION_DISPLAY_HEADING because it's likely it's interfering with OPTION_DISPLAY_HEADING_EL_ONLY if you're using the default settings.

On Wed, Feb 21, 2018 at 4:15 AM, maxmiztejm [email protected] wrote:

#define OPTION_DISPLAY_STATUS #define OPTION_DISPLAY_HEADING #define OPTION_DISPLAY_HEADING_AZ_ONLY #define OPTION_DISPLAY_HEADING_EL_ONLY

#define FEATURE_4_BIT_LCD_DISPLAY #define LCD_COLUMNS 16 #define LCD_ROWS 2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46#issuecomment-367260551, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacEknNkYTUkNQlw2HFD38o2M5XqeJks5tW97CgaJpZM4SMt19 .

k3ng avatar Feb 21 '18 12:02 k3ng

I already, try this. But no text: Elevation XXX.X is displayed.

maxmiztejm avatar Feb 21 '18 12:02 maxmiztejm

Do this:

#define OPTION_DISPLAY_STATUS #define OPTION_DISPLAY_HEADING // #define OPTION_DISPLAY_HEADING_AZ_ONLY // #define OPTION_DISPLAY_HEADING_EL_ONLY

Or this:

// #define OPTION_DISPLAY_STATUS // #define OPTION_DISPLAY_HEADING #define OPTION_DISPLAY_HEADING_AZ_ONLY #define OPTION_DISPLAY_HEADING_EL_ONLY

You have only two rows to work with, so there are conflicts occurring.

On Wed, Feb 21, 2018 at 7:35 AM, maxmiztejm [email protected] wrote:

I already, try this. But no text: Elevation XXX.X is displayed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46#issuecomment-367312375, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacJpx0F7U_c8S4GHjzJRM_Sq9l6Lxks5tXA2fgaJpZM4SMt19 .

k3ng avatar Feb 21 '18 12:02 k3ng

First option: displayed Azimuth XXX.X on the second row. Second option: displayed Azimuth XXX.X on the first row.

maxmiztejm avatar Feb 21 '18 12:02 maxmiztejm

Mine settings #define LCD_COLUMNS 16 // Zmena! //20 #define LCD_ROWS 2 // Zmena! //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU #define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds #define LCD_HHMM_CLOCK_POSITION LEFT //LEFT or RIGHT #define LCD_HHMMSS_CLOCK_POSITION LEFT //LEFT or RIGHT #define LCD_ALT_HHMM_CLOCK_AND_MAIDENHEAD_POSITION LEFT #define LCD_ALT_HHMM_CLOCK_AND_MAIDENHEAD_ROW 1 #define LCD_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD_POSITION CENTER #define LCD_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD_ROW 3 #define LCD_BIG_CLOCK_ROW 4 #define LCD_GPS_INDICATOR_POSITION RIGHT //LEFT or RIGHT #define LCD_GPS_INDICATOR_ROW 1 #define LCD_MOON_TRACKING_ROW 3 // LCD display row for OPTION_DISPLAY_MOON_TRACKING_CONTINUOUSLY #define LCD_MOON_TRACKING_UPDATE_INTERVAL 5000 #define LCD_SUN_TRACKING_ROW 4 // LCD display row for OPTION_DISPLAY_SUN_TRACKING_CONTINUOUSLY #define LCD_SUN_TRACKING_UPDATE_INTERVAL 5000 #define LCD_MOON_OR_SUN_TRACKING_CONDITIONAL_ROW 3 // LCD display row for OPTION_DISPLAY_MOON_OR_SUN_TRACKING_CONDITIONAL #define SPLASH_SCREEN_TIME 3000

#define LCD_HEADING_ROW 2 #define LCD_HEADING_FIELD_SIZE 20 #define LCD_AZ_ONLY_HEADING_ROW 1 #define LCD_AZ_ONLY_HEADING_FIELD_SIZE 20 #define LCD_EL_ONLY_HEADING_ROW 2 #define LCD_EL_ONLY_HEADING_FIELD_SIZE 20 #define LCD_STATUS_ROW 1 #define LCD_STATUS_FIELD_SIZE 20 #define LCD_DIRECTION_ROW 1 #define LCD_HHMMSS_CLOCK_ROW 1 #define LCD_HHMM_CLOCK_ROW 1 #define PARKING_STATUS_DISPLAY_TIME_MS 5000

maxmiztejm avatar Feb 21 '18 12:02 maxmiztejm

How much local variable space do you have available (shown at compile time)?

On Wed, Feb 21, 2018 at 7:43 AM, maxmiztejm [email protected] wrote:

Mine settings #define LCD_COLUMNS 16 // Zmena! //20 #define LCD_ROWS 2 // Zmena! //2 // this is automatically set below for HARDWARE_EA4TX_ARS_USB and HARDWARE_M0UPU #define LCD_UPDATE_TIME 1000 // LCD update time in milliseconds #define LCD_HHMM_CLOCK_POSITION LEFT //LEFT or RIGHT #define LCD_HHMMSS_CLOCK_POSITION LEFT //LEFT or RIGHT #define LCD_ALT_HHMM_CLOCK_AND_MAIDENHEAD_POSITION LEFT #define LCD_ALT_HHMM_CLOCK_AND_MAIDENHEAD_ROW 1 #define LCD_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD_POSITION CENTER #define LCD_CONSTANT_HHMMSS_CLOCK_AND_MAIDENHEAD_ROW 3 #define LCD_BIG_CLOCK_ROW 4 #define LCD_GPS_INDICATOR_POSITION RIGHT //LEFT or RIGHT #define LCD_GPS_INDICATOR_ROW 1 #define LCD_MOON_TRACKING_ROW 3 // LCD display row for OPTION_DISPLAY_MOON_TRACKING_CONTINUOUSLY #define LCD_MOON_TRACKING_UPDATE_INTERVAL 5000 #define LCD_SUN_TRACKING_ROW 4 // LCD display row for OPTION_DISPLAY_SUN_TRACKING_CONTINUOUSLY #define LCD_SUN_TRACKING_UPDATE_INTERVAL 5000 #define LCD_MOON_OR_SUN_TRACKING_CONDITIONAL_ROW 3 // LCD display row for OPTION_DISPLAY_MOON_OR_SUN_TRACKING_CONDITIONAL #define SPLASH_SCREEN_TIME 3000

#define LCD_HEADING_ROW 2 #define LCD_HEADING_FIELD_SIZE 20 #define LCD_AZ_ONLY_HEADING_ROW 1 #define LCD_AZ_ONLY_HEADING_FIELD_SIZE 20 #define LCD_EL_ONLY_HEADING_ROW 2 #define LCD_EL_ONLY_HEADING_FIELD_SIZE 20 #define LCD_STATUS_ROW 1 #define LCD_STATUS_FIELD_SIZE 20 #define LCD_DIRECTION_ROW 1 #define LCD_HHMMSS_CLOCK_ROW 1 #define LCD_HHMM_CLOCK_ROW 1 #define PARKING_STATUS_DISPLAY_TIME_MS 5000

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46#issuecomment-367314154, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacFuPwGJiywI6-yA9cTv69bCIVOePks5tXA-CgaJpZM4SMt19 .

k3ng avatar Feb 21 '18 12:02 k3ng

75% are available

maxmiztejm avatar Feb 21 '18 12:02 maxmiztejm

How many bytes for local variables?

On Wed, Feb 21, 2018 at 7:49 AM, maxmiztejm [email protected] wrote:

75% are available

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46#issuecomment-367315425, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacAebUrRVP1kPuX9IXwWWN7nI0nMUks5tXBDQgaJpZM4SMt19 .

k3ng avatar Feb 21 '18 12:02 k3ng

leaving 6087 bytes for local variables

maxmiztejm avatar Feb 21 '18 12:02 maxmiztejm

Problem solved. I forget change FEATURE_ELEVATION_CONTROL setting. Now it works. Thank you!

maxmiztejm avatar Feb 21 '18 13:02 maxmiztejm

Ah, OK. I'm going to add some code to prevent this in the future for others.

73 Goody K3NG

On Wed, Feb 21, 2018 at 8:08 AM, maxmiztejm [email protected] wrote:

Problem solved. I forget change FEATURE_ELEVATION_CONTROL setting. Now it works. Thank you!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/46#issuecomment-367320347, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLacPedprdl0RWBSilt8mgRzrx7V265ks5tXBVWgaJpZM4SMt19 .

k3ng avatar Feb 22 '18 00:02 k3ng