View Single Post
  #1  
Old 02-21-2006, 10:03 AM
ambishop ambishop is offline
Member
 
Join Date: Feb 2006
Location: Austin
Posts: 289
ambishop is on a distinguished road
Enabling Features in the V26 code

Hi,

To keep everyone updated Nomad has spent some considerable effort exporting modules from the Nav firmware and comparing them to v26.09. He has found the module that adds the menu item for perspective mode, and thinks he can add it in failry easily.

This is the same guy who figured out the proper checksum fo us to make logo changes, so make sure and give him a big thanks for all of his efforts.

Below is where he stands on adding modes to v26 firmware.

---

In the v26.09A There are 3 map modes:
1. 2D pointing north
2. 2D travel direction
3. 3D

System creates a menu then add clicable items in it:
CreateMenu(...);

AddMenuItem(0, "Pointing Norh", ...);
SetOnClickProc(0, point_north_click_proc, ...);

AddMenuItem(1, "Travel Direction", ...); SetOnClickProc(1, travel_dir_click_proc, ...);

AddMenuItem(2, "Perspective", ...);
SetOnClickProc(2, perspective_click_proc, ...);

ShowMenu(...);

When you select item, the apropiate clic procedure is called.
Click procedure for Point North looks like this:

turn_ON_point_north_mode(...);
turn_OFF_travel_dir_mode(...);
turn_OFF_perspective_mode(...);
RedrawMap(...);

Click procedure for 'Travel Direction' and 'Perspective' modes looks similar.

Each click procedure enable mode you selected, then disable two othre modes.
So 3D mode works in v26.09 and works after downgrade to v26. Unless you select 'Travel Direction' or 'Pointing North'.

The bad news:

v26 software adds only TWO items to map direction menu: 'pointing north' and 'travel direction'.
And there is no click procedure to switch to 3D mode.
Solution is to insert some code to add 3rd menu item and click procedure for it.

---

We are currently looking at options such as adding in the menu item or nuking the Travel North menu item in excahnge for Perspective mode

Regards,
Martin

Sponsored Links