graphical errors with KhiCas
22 posts
• Page 2 of 3 • 1, 2, 3
Re: graphical errors with KhiCas
The screen picture shown looks like 240x320 instead of 320x240 like on my nspire cx. The screen sizes are hardcoded inside KhiCAS, only 320x240 screens are supported.
I don't understand what the issue is with your trig identities inside KhiCAS. texpand , halftan, tlin will do conversion like that.
I don't understand what the issue is with your trig identities inside KhiCAS. texpand , halftan, tlin will do conversion like that.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3720
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
DaManDaMythDaLeg wrote:here is what i see when i open khicas.tns
further info
similar graphics bugs occur when I run any of the following commands:
+
*
plot()
any of the commands in the "Shell Prog Options" group of the menu
any of the commands in the "Plots" group of the menu
so, basically anything that would open a popup, another window, create a "graphic object" or otherwise leave the Lua
for example, this is the result of the command point(proot(x^5 + x + 1))
which, according to the documentation, should output this:
given the vague similarities between the expected, and actual output, i think it would be safe to assume that the issue is specifically with how the program communicates with the LCD, or draws the graphics
btw, anyone know why the previews for my pictures keep being sideways for the pictures of my calculator, but not the other things?
You do not have the required permissions to view the files attached to this post.
Last edited by DaManDaMythDaLeg on 07 Feb 2021, 23:15, edited 1 time in total.
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
parisse wrote:I don't understand what the issue is with your trig identities inside KhiCAS. texpand , halftan, tlin will do conversion like that.
oh okay, i guess that was just user error then (i was using simplify with some trig stuff, and getting weird results)
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
parisse wrote:The screen picture shown looks like 240x320 instead of 320x240 like on my nspire cx.
I'm not sure what you mean by that, my screen is definitely wider than it is tall
anyhow, would there be a way for me to modify my installation to work with my screen?
like maybe, rewrite how it draws to the screen or something
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
DaManDaMythDaLeg wrote:[
given the vague similarities between the expected, and actual output, i think it would be safe to assume that the issue is specifically with how the program communicates with the LCD, or draws the graphics
Yes, some assistance from the ndless team would be welcome to understand what happens here, something specific to your hardware, might be related to
https://hackspire.org/index.php?title=Hardware#Screen
https://hackspire.org/index.php?title=Libndls#LCD_API
I'm using ngc to draw things in KhiCAS (https://hackspire.org/index.php?title=Syscalls#Graphic_Context_API).
Perhaps a call to lcd_init(lcd_type()); should be done during the initialization phase of KhiCAS?
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3720
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
i agree, is there a way to "ping" the devs, or do we just wait for them to see this
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
I sent Vogtinator the link to the post already, although he had already mentioned the use of the lcd_* APIs in the past, and there are examples here and there.
No hardcoded addresses/sizes/dimensions should ever be used in programs, now we see why - the Ndless APIs are here to abstract all that away and get updated over time to support hopefully all hardware variants.
No hardcoded addresses/sizes/dimensions should ever be used in programs, now we see why - the Ndless APIs are here to abstract all that away and get updated over time to support hopefully all hardware variants.
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14819
- Images: 1131
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: graphical errors with KhiCas
that's a good point, I'd wager that alot of the crashes that KhiCas experiences could be due to hardcoded addresses and such
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
The screen sizes 320x240 are hardcoded, but that's all what is hardcoded. It does not explain why calls to ngc fail on this calculator, or more precisely why it seems that the screen is rotated (from the status bar we see on the pictures).
BTW, did you install the latest versions of ndless and KhiCAS?
BTW, did you install the latest versions of ndless and KhiCAS?
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3720
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: graphical errors with KhiCas
parisse wrote:BTW, did you install the latest versions of ndless and KhiCAS?
yes, unless you've released a new version this week, i'm up to date (i last updated over the weekend)
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
-Napoleon Bonaparte
-
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)- Posts: 13
- Joined: 07 Feb 2021, 08:23
- Location: not france
- Gender:
- Calculator(s):→ MyCalcs profile
22 posts
• Page 2 of 3 • 1, 2, 3
Return to Problèmes divers / Aide débutants
Who is online
Users browsing this forum: ClaudeBot [spider] and 10 guests