You are here

Realtime time axis

13 posts / 0 new
Last post
Eric
Offline
Last seen: 1 year 4 months ago
Joined: 2017-08-28 10:27
Posts: 16
Realtime time axis

The displayed time seams wrong.

If I enable keyboard control and RT data and run the motor for 5 seconds the x-axis shows around 16 seconds.

FW modified 3.27, tool 0.80, custom HW, Windows 7 64 bit.

Is it the same for everbody?

/Eric

benjamin
Offline
Last seen: 1 day 21 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

You are right, the time scale is not correct. Added to TODO list:
http://vesc-project.com/node/110

benjamin
Offline
Last seen: 1 day 21 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

Fixed in VESC Tool 0.81

Eric
Offline
Last seen: 1 year 4 months ago
Joined: 2017-08-28 10:27
Posts: 16

That was quick but not 100% good yet.
Now I get 3.3 seconds is displayed for 5 seconds of running. To measure acceleration, tune PID loops etc the time has to be correct.
Maybe you could send a timestamp (chVTGetSystemTimeX()) with each COMM_GET_VALUES reply?
In the tool changelog it wrongly says FW 3.27 is supported.

 

Eric
Offline
Last seen: 1 year 4 months ago
Joined: 2017-08-28 10:27
Posts: 16

I put a toggle of a pin in COMM_GET_VALUES, the average frequency is 33 Hz (30 ms between edges). If you zoom in on realtime data in Vesc-tool the display shows the samples at 20 ms apart.
There is a lot of jitter in the requests, but this will probably differ from PC to PC and different OS.

 

Ackmaniac
Offline
Last seen: 5 years 11 months ago
Joined: 2017-09-04 23:17
Posts: 10

I added a pull request which fixes that issue and shows the real time data with the correct timing.

ThierryGTLTS
Offline
Last seen: 5 years 7 months ago
Joined: 2017-09-06 14:18
Posts: 116

Thanks, I was also annoyed with RT problem.

Have a Nice Day.

Thierry

hexakopter
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

Havent tested a lot in VESC Tool 0.82, but looks like Ackmaniacs pull request results in a bricked temperature graph. When choose the temperature tab instead of the current tab the graph freezes. Maybe I can look into that later. Great that the sources are available now. yes

hexakopter
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

Update. It is not just the temperature graph that gets destroyed. In my opinion the whole realtime data graphs are useless in the new VESC Tool. I uploaded a short video here: https://www.dropbox.com/s/oeythjs7g3yjwyj/FW3_29_RealtimeData.MOV?dl=0

You can see that the motor response to keyboard commands instantly when the realtime data is disabled. After enabling the realtime data the update interval of the incoming data stream gets slower over time. Not just the displayed values are delayed, the whole system acts delayed as you can see in the video. 

benjamin
Offline
Last seen: 1 day 21 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

I had a look at this. Do you happen to use a UI scale factor that is not 1 in VESC Tool Settings?

hexakopter
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

Yes. I did not changed it manually, but with the "auto" enabled I get a UI Scale Factor of 1,18.

benjamin
Offline
Last seen: 1 day 21 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

That is probably the reason. The new version of qcustomplot supports float scaling, but it becomes extremely slow if that is used. I have disabled ui scaling for the plots in vesc tool 0.83, so this should be solved. The disadvantage of disabling it is that the plots will have a bit lower quality when the scale factor is not 1. Can you give it a try?

hexakopter
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

Thanks for the fix. Now it is working also with a scale of 1,18 without problems.