Commit fd9ca51
committed
Docs: Add new JavaScript features (PID, flight modes, let/const, ternary)
Adds documentation for new INAV 9.0 JavaScript programming features:
New Features:
- PID controller output access (inav.pid[0-3].output)
- Flight mode detection (inav.flight.mode.poshold, .rth, etc.)
- Let/const variables for compile-time named expressions
- Ternary operator for conditional value assignment
Changes:
- Add Variables section with let/const and ternary operator docs
- Update Available Objects to list PID and flight modes
- Add Flight Mode Detection subsection with examples
- Add PID Controller Outputs subsection with examples
- Update index.md feature list
- Update Tips section for consistency
All examples use namespaced syntax (inav.flight.*, inav.override.*, etc.)
for clarity and explicitness.1 parent 8ff1820 commit fd9ca51
File tree
2 files changed
+91
-15
lines changed- docs/javascript_programming
2 files changed
+91
-15
lines changedLines changed: 85 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
201 | 246 | | |
202 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
203 | 280 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
214 | 284 | | |
| 285 | + | |
215 | 286 | | |
216 | 287 | | |
| 288 | + | |
| 289 | + | |
217 | 290 | | |
218 | 291 | | |
219 | 292 | | |
220 | 293 | | |
221 | | - | |
222 | | - | |
| 294 | + | |
| 295 | + | |
223 | 296 | | |
224 | 297 | | |
225 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | | - | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
0 commit comments