π
<-

graphical errors with KhiCas

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

Re: graphical errors with KhiCas

Message non lude parisse » 07 Fév 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.
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 95%
 
Messages: 3825
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 07 Fév 2021, 22:43

DaManDaMythDaLeg a écrit:
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?
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
Dernière édition par DaManDaMythDaLeg le 07 Fév 2021, 23:15, édité 1 fois.
never interrupt your enemy when he is making a mistake,
-Napoleon Bonaparte
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 07 Fév 2021, 22:48

parisse a écrit: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
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 07 Fév 2021, 23:08

parisse a écrit: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
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude parisse » 08 Fév 2021, 07:53

DaManDaMythDaLeg a écrit:[

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?
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 95%
 
Messages: 3825
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 09 Fév 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
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude Adriweb » 09 Fév 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
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 82.1%
 
Messages: 14883
Images: 1211
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 09 Fév 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
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude parisse » 09 Fév 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?
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 95%
 
Messages: 3825
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: graphical errors with KhiCas

Message non lude DaManDaMythDaLeg » 09 Fév 2021, 08:07

parisse a écrit: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
Avatar de l’utilisateur
DaManDaMythDaLeg
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 20%
 
Messages: 13
Inscription: 07 Fév 2021, 08:23
Localisation: not france
Genre: Homme
Calculatrice(s):
MyCalcs profile

PrécédenteSuivante

Retourner vers Problèmes divers / Aide débutants

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 14 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Ndless for CX 4.5.5 / CX II 6.2.0
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 !
12345
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2868 utilisateurs:
>2852 invités
>8 membres
>8 robots
Record simultané (sur 6 mois):
32248 utilisateurs (le 01/09/2025)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)