BREAK command for FOR/NEXT cycle now can be used without indicating variable.
New CONTINUE command will be implemented for all types of cycles:
Command CONTINUE loops to next iteration of WHILE/WILE END, DO/UNTIL loops and closest FOR/NEXT loop:
DO
...
IF K = 5 THEN CONTINUE
...
UNTIL K < 10
Command CONTINUE [x] loops to next iteration of FOR/NEXT loop for variable [x]:
FOR K = 0 TO 10
...
IF K = 5 THEN CONTINUE K
...
NEXT K
New ARG() function will be implemented:
ARG (x)
returns argument of complex number [x]. Command OPTION ANGLE has its effect in this function.
2.7 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.7 version
New command will be implemented:
DRAW LINECAP RECT
DRAW LINECAP ROUND
sets style of line end: RECT - rectangular, ROUND - rounded. Default is RECT.
DRAW LINECAP RECT
DRAW LINECAP ROUND
sets style of line end: RECT - rectangular, ROUND - rounded. Default is RECT.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.7 version
New example program "painter 2" will be added.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.7 version
New commands will be added:
SLIDER_CHANGED (n$)
returns 1 if value of slider with name [n$] was changed. Otherwise it returns 0.
SWITCH_CHANGED (n$)
returns 1 if state of switch with name [n$] was changed. Otherwise it returns 0.
SLIDER_CHANGED (n$)
returns 1 if value of slider with name [n$] was changed. Otherwise it returns 0.
SWITCH_CHANGED (n$)
returns 1 if state of switch with name [n$] was changed. Otherwise it returns 0.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.7 version
GPS will be supported:
GPS data include latitude, longitude, altitude above sea level and direction. To receive GPS data you need to turn on GPS with command SET GPS ON. Availability of data can be checked with functions GPS_POSITION_AVAILABLE() and GPS_DIRECTION_AVAILABLE(). Data can be received with commands GET GPS POSITION and GET GPS DIRECTION.
New commands and functions will be added:
GET GPS DIRECTION h
gets GPS data of current direction and saves it to numeric variable [h]. Direction is measured in degrees.
GET GPS POSITION LAT,LON,ALT
gets GPS data of current latitude, longitude and altitude, and saves them to numeric variables [lat], [lon] and [alt]. Latitude and longitude are measured in degrees, altitude - in meters.
GPS_DIRECTION_AVAILABLE ()
returns 1 if new GPS heading data are available. Otherwise it returns 0.
GPS_POSITION_AVAILABLE ()
returns 1 if new GPS position data are available. Otherwise it returns 0.
SET GPS OFF
SET GPS ON
turns on and turns off GPS. ON = enabled, OFF = disabled.
New example program "my GPS position.txt" will be added.
GPS data include latitude, longitude, altitude above sea level and direction. To receive GPS data you need to turn on GPS with command SET GPS ON. Availability of data can be checked with functions GPS_POSITION_AVAILABLE() and GPS_DIRECTION_AVAILABLE(). Data can be received with commands GET GPS POSITION and GET GPS DIRECTION.
New commands and functions will be added:
GET GPS DIRECTION h
gets GPS data of current direction and saves it to numeric variable [h]. Direction is measured in degrees.
GET GPS POSITION LAT,LON,ALT
gets GPS data of current latitude, longitude and altitude, and saves them to numeric variables [lat], [lon] and [alt]. Latitude and longitude are measured in degrees, altitude - in meters.
GPS_DIRECTION_AVAILABLE ()
returns 1 if new GPS heading data are available. Otherwise it returns 0.
GPS_POSITION_AVAILABLE ()
returns 1 if new GPS position data are available. Otherwise it returns 0.
SET GPS OFF
SET GPS ON
turns on and turns off GPS. ON = enabled, OFF = disabled.
New example program "my GPS position.txt" will be added.