- Posts: 268
Devo10 Progress
- suvsuv
- Topic Author
- Offline
Less
More
15 Oct 2012 06:56 - 15 Oct 2012 09:22 #2241
by suvsuv
Devo10 Progress was created by suvsuv
After working on GUI for devo10 for 2 weeks, I agree to PB that only the Page folder need to rewrite, the GUI and Screen folders can support both devo8 and devo10 with some minor changes. Here is my current progress, about 2x pages are required to redraw .
the next step is to provide curves setting pages in order to let my 120cp and mcpx fly with my devo10
1. Simulator works for devo10
2. Fix bugs on devo10's LCD and show correct shapes in real devo10 device
3. Fix bugs on devo10's UP/Down/EXT keys
4. Keyborads show correctly in d10's small screen
5. Multilanguage works for devo10, it is still a question about whether to support the Traditional Chinese font as its font size is to big for d10's small screen -- at least 15x15
6. MainMenu and SubMenu pages are done
7. Stick calibration page is done
8. Monitoring page is done
the next step is to provide curves setting pages in order to let my 120cp and mcpx fly with my devo10
1. Simulator works for devo10
2. Fix bugs on devo10's LCD and show correct shapes in real devo10 device
3. Fix bugs on devo10's UP/Down/EXT keys
4. Keyborads show correctly in d10's small screen
5. Multilanguage works for devo10, it is still a question about whether to support the Traditional Chinese font as its font size is to big for d10's small screen -- at least 15x15
6. MainMenu and SubMenu pages are done
7. Stick calibration page is done
8. Monitoring page is done
Last edit: 15 Oct 2012 09:22 by suvsuv.
Please Log in or Create an account to join the conversation.
- suvsuv
- Topic Author
- Offline
Less
More
- Posts: 268
15 Oct 2012 06:58 - 15 Oct 2012 08:21 #2242
by suvsuv
Replied by suvsuv on topic Devo10 Progress
Last edit: 15 Oct 2012 08:21 by suvsuv.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
15 Oct 2012 08:22 #2244
by FDR
Replied by FDR on topic Devo10 Progress
If I were you, I would use inverted colors for the selected row in the menus instead of underlining it...
Please Log in or Create an account to join the conversation.
- suvsuv
- Topic Author
- Offline
Less
More
- Posts: 268
15 Oct 2012 09:05 - 15 Oct 2012 09:05 #2245
by suvsuv
Replied by suvsuv on topic Devo10 Progress
NP, changed it to as you suggestion.
However ,underlining selected item is done in gui.c, which is a more nature change with PB's existing codes.
void GUI_DrawObject(struct guiObject *obj)
{
...
if (obj == objSELECTED) {
#if defined(devo10) || defined(emu_devo10)
// for devo10, drawing a rect makes the selected obj urgly, draw an underline is better
LCD_DrawRect(obj->box.x, obj->box.y+ obj->box.height -1 , obj->box.width, 1, 1);
#else
int i;
for(i = 0; i < Display.select_width; i++)
LCD_DrawRect(obj->box.x+i, obj->box.y+i, obj->box.width-2*i, obj->box.height-2*i, Display.select_color);
#endif
To invert a selected item, the best place is in the label.c, so it might not be a better solution from a coding perspective
However ,underlining selected item is done in gui.c, which is a more nature change with PB's existing codes.
void GUI_DrawObject(struct guiObject *obj)
{
...
if (obj == objSELECTED) {
#if defined(devo10) || defined(emu_devo10)
// for devo10, drawing a rect makes the selected obj urgly, draw an underline is better
LCD_DrawRect(obj->box.x, obj->box.y+ obj->box.height -1 , obj->box.width, 1, 1);
#else
int i;
for(i = 0; i < Display.select_width; i++)
LCD_DrawRect(obj->box.x+i, obj->box.y+i, obj->box.width-2*i, obj->box.height-2*i, Display.select_color);
#endif
To invert a selected item, the best place is in the label.c, so it might not be a better solution from a coding perspective
Last edit: 15 Oct 2012 09:05 by suvsuv.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
Less
More
- Posts: 4402
15 Oct 2012 10:18 #2247
by PhracturedBlue
Replied by PhracturedBlue on topic Devo10 Progress
you could try drawing a box around it, that would be easy in the gui code (but may not actually work well, you'd need to try it). The inverted colors do look nice, it probably makes sense to support passing that into the widgets even if it is more complicated.
Really nice work you've done so far! I'm glad to see the progress.
Really nice work you've done so far! I'm glad to see the progress.
Please Log in or Create an account to join the conversation.
- suvsuv
- Topic Author
- Offline
Less
More
- Posts: 268
17 Oct 2012 09:14 - 17 Oct 2012 09:17 #2299
by suvsuv
Replied by suvsuv on topic Devo10 Progress
PB, your framework is well-designed with implemented low-level protocol layers, so writing GUIs for devo10 is not very hard . Here are new progress:
1. Modify Keyboard , allow long-pressed the DEL key in Devo10 to erase the whole line, stealing the idea from Deviation 8's Touch Keypad)
2. Button works on devo 10
3. Dialog works on devo 10
4. Binding works on devo10, still need to verify with real MCPX and Minicp
5. Safty, Lowbattery dialogs work on devo10
1. Modify Keyboard , allow long-pressed the DEL key in Devo10 to erase the whole line, stealing the idea from Deviation 8's Touch Keypad)
2. Button works on devo 10
3. Dialog works on devo 10
4. Binding works on devo10, still need to verify with real MCPX and Minicp
5. Safty, Lowbattery dialogs work on devo10
Last edit: 17 Oct 2012 09:17 by suvsuv.
Please Log in or Create an account to join the conversation.
- blackmoon
- Offline
Less
More
- Posts: 402
17 Oct 2012 09:22 - 17 Oct 2012 09:25 #2300
by blackmoon
Replied by blackmoon on topic Devo10 Progress
Dammit, you guys will make me buy another walkera tx before Christmas, with the progress you are making on the devo10 port.
Didn't expect so much so fast.
Thank you for your hard work.
Btw inverted color is nicer.
Didn't expect so much so fast.
Thank you for your hard work.
Btw inverted color is nicer.
Last edit: 17 Oct 2012 09:25 by blackmoon.
Please Log in or Create an account to join the conversation.
- suvsuv
- Topic Author
- Offline
Less
More
- Posts: 268
21 Oct 2012 11:15 #2360
by suvsuv
Replied by suvsuv on topic Devo10 Progress
Please Log in or Create an account to join the conversation.
Time to create page: 0.352 seconds
- Home
- Forum
- General
- General Discussions
- Devo10 Progress