π
<-

graphical errors with KhiCas

:32tins: :32tinsktpb: :32tinsktpn: :32tinscas: :32tinstpkc: :32tinstpktpb: :32tinstp: :32tinscastp: :32tinscmc: :32tinscx: :32tinscxcas:

Re: graphical errors with KhiCas

Unread postby parisse » 07 Feb 2021, 22:27

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.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3720
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 07 Feb 2021, 22:43

DaManDaMythDaLeg wrote:
IMG_2035[566].JPG
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))
IMG_2036[570].JPG


which, according to the documentation, should output this:
Screenshot 2021-02-07 134315.png



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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 07 Feb 2021, 22:48

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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 07 Feb 2021, 23:08

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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby parisse » 08 Feb 2021, 07:53

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?
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3720
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 09 Feb 2021, 02:41

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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby Adriweb » 09 Feb 2021, 03:24

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.

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
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14819
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 09 Feb 2021, 03:51

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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby parisse » 09 Feb 2021, 08:04

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?
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3720
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: graphical errors with KhiCas

Unread postby DaManDaMythDaLeg » 09 Feb 2021, 08:07

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
User avatar
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 20%
 
Posts: 13
Joined: 07 Feb 2021, 08:23
Location: not france
Gender: Male
Calculator(s):
MyCalcs profile

PreviousNext

Return to Problèmes divers / Aide débutants

Who is online

Users browsing this forum: ClaudeBot [spider] and 10 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
953 utilisateurs:
>923 invités
>23 membres
>7 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)