Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 ... 10
41
TCB Dev / QtAssistant/Help Files
« Last post by FuzzyJack on January 04, 2024, 02:42:40 AM »
Following previous conversations about the OP Config tool, I have been having a nosey at the Qt Assistant issue and why the help files no longer work.

Turns out the use of QtAssistant is more intended to be used on machine that has Qt installed specifically but you can (and as Luke has) bundle the Assistant application as part of the build.   There is also a QtHelpFile API in the Qt suite now that can be used to display the content of helpfiles within any type of window you like but will take a look at that later.

Poking the current deployed version of OPConfig on my machine I have tried to launch the qch collection file using the Assistant.exe included in the build and get a library error initially (see attached files) but that is because I ran the assistant from within the assistant folder.  The library file it moans about is in the main directory and if you run the assistant from there it works although the actual display then has no content.

The actual application uses assistant\assistant to call the tool anyway so that's probably correct, why the qch file appears to be empty is different.

I get the same if I use the actual QtAssistant on my Qt install to point at the deployed qch file as well so not sure why the qch file would be empty or perhaps it is just because I haven't specified a page in the call but on a newly generated qch I don't need to so that's strange.

If I generate a new qch file in the source I get output but most of the links in the TOC don't actually work and try to open an "untitled".   Turns out in the qhp file each of the sections is referenced using .\ in the file location which appears not to be working.   removing the .\ renders the section links operable again.

e.g.
<section title="Program Layout" ref="./formlayout.html"></section>   -- doesn't work
<section title="USB Drivers" ref="drivers.html"></section>                -- works

I'm also getting some interesting output in some of the help files where certain graphics or links are used (DodgyGraphics.png).

The HTML file itself displays fine so it looks like rendering of the h4 heading type in the css is a bit broken.  Somef  othe spacing is as as well on other pages and the fonts appear to be a but up and down.

The h4 entry is meant to be non-repeating but it appears to be ignoring it:

h4
{
   margin: 0px;
   padding: 0px;
   border: 0px;
   margin-top: 20px;
   margin-bottom: 10px;
   font-size: 18px;
}
h4.entry
{
   padding-left: 15;
    background: url('images/h4_icon.png');
    background-repeat: no-repeat;

}

These all look very much like issues that probably were absolutely fine on older versions of the application 8 years ago but Windows and/or Qt have moved on and things have gone a bit squiffy.

Fun fun fun :-)
42
Other Open Source Projects / Re: Standalone Tank IR
« Last post by Rongyos on January 03, 2024, 04:21:07 PM »
Hi!

@Luke: I didn't find the "myreceiverobject.getPinNum" object where the receiver pin number has to be assigned to D2 pin of Nano.
Can you help me where I can get it? My receiver is not working right now.

An other question. Do you know where can I get constant 5V from the Taigen V3 MFU? It seems the CN2 is only providing around 1.8V

Mod.: Also when I provide 5V to my servo its little bit moving (the recoil look fine to me) when it shouldn't do that, like some kind of whitenoise

Thanks and regards!
Rongyos

Problem again: no servo recoil (every connection is good)

Problem again2: phantom cannon shot after switching on (do you remember this problem also appeared on TCB):

15:10:15.520 -> ---------------------------------------------
15:10:15.520 -> BATTLE INFO
15:10:15.520 -> ---------------------------------------------
15:10:15.564 -> Is Repair Tank?   No
15:10:15.564 -> Fire Protocol:    Tamiya
15:10:15.564 -> Hit Protocol 2:   Heng Long
15:10:15.564 -> Repaired by:      Clark Repair
15:10:15.564 -> Send MG IR Code:  No
15:10:15.564 -> Accept MG Damage: No
15:10:15.564 -> Damage Profile:   Tamiya Spec
15:10:15.564 -> Weight Class:     Medium
15:10:15.564 -> (6 cannon hits, 5.0 sec reload, 12.0 sec recovery)
15:10:15.564 ->
15:10:15.564 ->
15:10:15.564 ->
15:10:21.556 -> Fire Cannon
43
TCB Dev / Re: High DPI Issue
« Last post by FuzzyJack on January 02, 2024, 02:55:20 PM »
Oh and I would be happy to recommend changes on a pull request from the fork if helpful.

One of the main differences in the later version is the settings in the user file but of course that contains user specific environment variables/paths and aren’t great for inclusion in the source control as it isn’t transferable between different environments.  Might have a think about that too.   

Not a Qt user before so it’s an interesting journey so far.   ;)
44
TCB Dev / Re: High DPI Issue
« Last post by FuzzyJack on January 02, 2024, 02:48:53 PM »
I did see a comment about the Qt assistant and I think I did get an error about it myself when I tried something.

Happy to have a nosey when I get a mo.   I am primarily a Mac user myself normally but have this Windows machine for various reasons so I can try things on both.  Obviously there are already known issues with a Mac because it uses WinSparkle for the updates rather than sparkle and the code isn’t currently set up to work differently depending on the O/S.

There are a couple of compilation warnings already popping up on the Mac when trying to build and there was an issue running Qt at all on Mac OS X 14 Sonoma but there was a known fix for that.

I’m looking at using the software to run an Arduino with an external motor controller (actually a Raspberry Pi Hat version so should be useable from Arduino or Pi with Judicious use of headers/connectors and a bit of PCB).   The fun bit is getting the extra external components on a PCB with a suitable power supply rail to allow the current without being supplied by the Arduino or the Pi or too much wiring.

I would love to build a board specifically or the Heclo hat but I’m starting with a few separate components at the moment just to get my head round it a bit.   The only downside of the Heclo board I can see at the moment is the use of the jst/xh connectors for some of the lighting while the Henglong 7.0 uses DuPont connectors for those.  It would be really nice to have a straight swap for the Henglong boards without extra converters or connectors but I get that the TCB is designed to be more than just a replacement for one specific solution!
45
TCB Dev / Re: High DPI Issue
« Last post by LukeZ on January 02, 2024, 11:50:10 AM »
Hi Chris,

Congrats on the most epic first post of all time! Guess you decided to jump straight into the deep end.

Back in the day I actually had complied in 5.6 with High DPI as a test, but since I didn't have a display with resolution greater than 1080P, it wasn't a very useful test. From what you've shown, the High DPI setting does seem to work well.

What this test back then did show me however were a few challenges that would come with upgrading to 5.6. The biggest downside was that QT Assistant (the program that renders all the built-in help files), was no longer supported, and at the time there wasn't a clear replacement. You can see a note to this effect in your first screen shot. It seemed a shame to lose the help, and most people were probably not using high resolution displays (well, that would have been more true in the past than today), so I stuck with 5.4. There were some other annoying bugs with 5.6, however I have heard they were fixed in later versions which did not exist back then.

Obviously if we're up to 5.15 now (not to mention 6.x), then a lot has changed in the intervening years, and maybe it is possible to get OP Config fully functional with a newer version. Having the high resolution issue resolved is a big advantage, but thorough testing needs to be done to make sure all the other components work.

If you want to keep experimenting please keep me posted on your progress and I'll be happy to help as I can!


Luke
46
TCB Dev / High DPI Issue
« Last post by FuzzyJack on January 02, 2024, 02:21:57 AM »
I searched the forum and couldn't find anything specifically about this but when using a computer with a high DPI or resolution the OP-Config tool may not display properly as it fails to scale both the window and the fonts to handle the high resolution.

I downloaded the Windows installer version and got this on Windows 10 Professional running on Bootcamp on a MacBook Pro running at 2880 x 1800 pixels. (See attachment NoScaling.png).

I know Luke is aware of this issue because there is a fix sitting in the code waiting to be used and a comment about how he couldn't test it at the time due to still compiling on qt 5.4.   That change was made 8 years ago of course and the code isn't currently regularly updated.

But if anyone does stumble into this like I did getting Qt installed and working isn't too hard (although I have used Qt 5.15.2 at the moment as the release 6 of qt looks to be a more comprehensive upgrade and I haven't got the environment setup correctly just yet for it to compile with that).

A few quick notes on that:

  • There is a commercial version of Qt and an Open Source one.  Clearly this is open source so you need to use the online installer to install the open source one.  You will need to create a Qt account.
  • If you do try version 6 of Qt then the SerialPort library is now an extra you will have to add in the custom installation or later using the Maintenance Tool
  • The default user file in the current main repo isn't compatible with the newer versions of Qt so you get a warning when you open it.   The recommendation appears to be to delete the old *.user files and let it create a new one (there are some variable type changes from the old one)

I currently have OP-Config compiling and running on Qt Creator 12.0.1 with Qt 5.15.2 with a MinGQ 8.1.0 64 bit compiler.

I haven't tested the WinSparkle updater or tried to build an installer from this yet but may have a go.

I've forked the repo here with the High DPI change included (and WinSparkle updated to 0.8.1 because it complained when I was still using the old one) https://github.com/ChrisSwallowWL/OP-Config


47
TCB Dev / Re: Sabretoth esc with arduino Mega
« Last post by skb6666 on November 27, 2023, 08:03:14 AM »
Thanks, that great  :D
48
TCB Dev / Re: Sabretoth esc with arduino Mega
« Last post by LukeZ on November 27, 2023, 07:09:48 AM »
You can use any ESC that you want, the Sabertooth is not required.
49
TCB Dev / Sabretoth esc with arduino Mega
« Last post by skb6666 on November 27, 2023, 04:27:31 AM »
Hi,

Can see some post with the mega board and the sabretooth esc, do you have to use the sabretooth esc or can you use the normal esc. If you have to use the sabretooth esc which model board is the best option.
50
Show and Tell / Re: HL T34 with tcb
« Last post by LukeZ on November 22, 2023, 08:20:46 AM »
Good work, and that's with two speed controllers and the bulky OP sound card. You've even kept the wiring very clean!
Pages: 1 2 3 4 [5] 6 7 8 ... 10