k3ng / k3ng_rotator_controller

K3NG Arduino Amateur Radio Rotator Controller
http://blog.radioartisan.com/yaesu-rotator-computer-serial-interface/
GNU General Public License v3.0
179 stars 125 forks source link

Head problem on 16x2 LCD display #46

Open maxmiztejm opened 6 years ago

maxmiztejm commented 6 years ago

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!

k3ng commented 6 years ago

What options and settings do you have configured?

On Tue, Feb 20, 2018 at 4:43 PM, maxmiztejm notifications@github.com 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 .

maxmiztejm commented 6 years ago

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

k3ng commented 6 years ago

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 notifications@github.com 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 .

maxmiztejm commented 6 years ago

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

k3ng commented 6 years ago

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 notifications@github.com 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 .

maxmiztejm commented 6 years ago

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

maxmiztejm commented 6 years ago

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

k3ng commented 6 years ago

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

On Wed, Feb 21, 2018 at 7:43 AM, maxmiztejm notifications@github.com 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 .

maxmiztejm commented 6 years ago

75% are available

k3ng commented 6 years ago

How many bytes for local variables?

On Wed, Feb 21, 2018 at 7:49 AM, maxmiztejm notifications@github.com 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 .

maxmiztejm commented 6 years ago

leaving 6087 bytes for local variables

maxmiztejm commented 6 years ago

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

k3ng commented 6 years ago

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 notifications@github.com 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 .