BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - qwerty100

Pages: [1]
1
Discussion - EVE / Alpha Value ignored for ESD_Circle_Line
« on: November 26, 2019, 01:12:58 PM »
I' using EveScreenDesigner 4.8RC2

When setting the alpha value on an ESD_Circle_Line widget I see no effect.

Should blending be possible for a CircleLine?  Note a normal ESD_Circle renders correctly with the alpha value taken into consideration.

Thanks


2
Discussion - EVE / Best way to manage many dynamic objects
« on: November 19, 2019, 05:47:01 PM »
I'm new to ESD and I'm looking for advice to create a display something like a radar display, where i need place between 0 and N spots on the screen and position and render these according to incoming data from an external source unrelated to Eve Code.

Each spot is independent from the others. I can kind of achieve this by creating a fixed number of ESDCircle widgets offscreen and linking each independently with their own unique  ESD_FUNCTION as shown in the attached pic

However this feels very inefficient as I need 6 unique functions for each of my N spots.

Is there are more effective/efficient way of achieving this result?

Is there any way of defining an array of widgets? If so how is indexing determined?
Within an ESD based project, can I dynamically add and manage widgets through external code?
Can I create a custom ESD_FUNCTION that would set all my parameters in one call? (valid,x,y,w,h,col)

Thanks in advance





3
Using EVE Screen Designer 4.6 RC4 :-

I create an ESD Rectangle Widget, and would expect that when i set radius to 0, I'd get a solid colour (and sharp corner), but it seems the whole rectangle is then shaded. in the screen capture attached, the widgets are IDENTICAL except that radius is zero on the left.  You can see the whole widget changes colour, wheres the right hand one has a radius=1 and I get the full 255,0,0 colour (but not the sharp corners)

Any Ideas,

Thanks

 

4
Discussion - EVE / Code Warnings in EVE Generated Code
« on: November 08, 2019, 10:13:20 AM »
I'm using an Eve 4.6RC4, using FT810 with a nordic nRF840 and compiled with GNU Arm Embedded Toolchain 8-2019-q3-update ( https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads )

Our project mandates the gcc -Werror flag so its challenging to work with the generated code due to the warnings it produces.

I've attached a zip with all the files I've had to fix, please pass this onto the Eve Developers for review and hopeful integration into next tool release.


Most annoying are when these are in my project files as they are often updated, eg

void App_Start__Builtin(App *context)
{
   void *owner = context->Owner;
   ((Ft_Esd_Widget *)&context->App_Screen)->Slots->Start(&context->App_Screen);
   Ft_Esd_Widget_SetActive(&context->App_Screen, 1);
}



error: passing argument 1 of 'Ft_Esd_Widget_SetActive' from incompatible pointer type [-Werror=incompatible-pointer-types]
  Ft_Esd_Widget_SetActive(&context->App_Screen, 1);

The Last line should really be passing Widget union member like this :-

Ft_Esd_Widget_SetActive(&context->App_Screen.Widget, 1);




Thanks.

5
@scoprioprise

I was finally able to get something working. I started a new clean project and was able to get my external data to display using the following method.

Create a custom function such as

Code: [Select]
static int my_val;
ESD_FUNCTION(ReadValue, Type = int )
ESD_PARAMETER(val, Type = int)
int ReadValue(int val)
{
        // update my_val in your own custom way
my_val++;
return my_val;
}


In this i just increment a value but you can inside of this call something external like int GetMySensorData().

The trick is to link this to your widget (I attached the logic view). You'll need a new function for each value you want to represent.


Once you've done this (I think) the function is called whenever the framework requires the widget value. Its therefore important the call completes quickly, eg just call the getter on a variable. just replace the sample ++ with your GetMySensorData() and return the value.



Whats odd is that I had tried this previously on my original EVE project but didnt seem to get anywhere? hence i got more and more confused?
Whats even more odd is my VM810 devkit has completely died today, fails to read the CHIPID and reset value registers??? I just get zero whatever I do....

6
I'm using Eve Screen Designer 4.6 (on an FT810) and have the system integrated into my own embedded CPU setup. The Framework is running as a FreeRTOS task. I have other tasks managing a range of sensors and I want to reflect the sensor data onto the GUI.

I can display the widgets, create internal time based animations via the GetMilliseconds node, and using a custom User Function, pass output data to the rest of my system.

What I'm struggling with is how to bring external sensor data INTO the framework. The examples are very much stand alone I've not found a case where this is shown.


I'm assuming on an Update, I'd somehow call a user function that reads the values I wish to display, sets these to "Variables" and after that I'm OK with getting them rendered.

Alternatively the generated code provides a PageName__Set_VaiableName__ESD() call but these are only valid during simulation and not exported. It also requires knowledge on the context pointer which I'm guessing should not be used outside of the framework internals?


Can someone please provide an example or explain the correct way I should do this.


Many Thanks.

 

Pages: [1]